Skip to content

Commit 7dca174

Browse files
authored
pywal16: 3.6.0 -> 3.7.2; add {manpage,optional-dependencies,updateScript} (#359741)
2 parents 6041b19 + e2317b1 commit 7dca174

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

pkgs/by-name/py/pywal16/package.nix

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,60 @@
33
python3,
44
fetchFromGitHub,
55
imagemagick,
6+
installShellFiles,
7+
nix-update-script,
68
}:
79

810
python3.pkgs.buildPythonApplication rec {
911
pname = "pywal16";
10-
version = "3.6.0";
12+
version = "3.7.2";
1113
pyproject = true;
1214

1315
src = fetchFromGitHub {
1416
owner = "eylles";
1517
repo = "pywal16";
16-
rev = "refs/tags/${version}";
17-
hash = "sha256-YKHOH1bEsZHTgYm8AYpfA6C8RtWxAqNQ+GHMcdaj/JU=";
18+
tag = version;
19+
hash = "sha256-aizuON8Y321i7bF2SuC5UC1iOWHY217ccfzY9WmaevQ=";
1820
};
1921

20-
nativeBuildInputs = [ python3.pkgs.setuptools ];
22+
build-system = [ python3.pkgs.setuptools ];
23+
24+
nativeBuildInputs = [ installShellFiles ];
2125

2226
nativeCheckInputs = [
2327
python3.pkgs.pytestCheckHook
2428
imagemagick
2529
];
2630

31+
postInstall = ''
32+
installManPage data/man/man1/wal.1
33+
'';
34+
2735
preCheck = ''
2836
export HOME=$(mktemp -d)
2937
'';
3038

3139
pythonImportsCheck = [ "pywal" ];
3240

41+
optional-dependencies = with python3.pkgs; {
42+
colorthief = [ colorthief ];
43+
colorz = [ colorz ];
44+
fast-colorthief = [ fast-colorthief ];
45+
haishoku = [ haishoku ];
46+
all = [
47+
colorthief
48+
colorz
49+
ast-colorthief
50+
haishoku
51+
];
52+
};
53+
54+
passthru.updateScript = nix-update-script { };
55+
3356
meta = {
3457
description = "16 colors fork of pywal";
3558
homepage = "https://github.com/eylles/pywal16";
36-
changelog = "https://github.com/eylles/pywal16/blob/${src.rev}/CHANGELOG.md";
59+
changelog = "https://github.com/eylles/pywal16/blob/refs/tags/${version}/CHANGELOG.md";
3760
license = lib.licenses.mit;
3861
maintainers = with lib.maintainers; [ moraxyc ];
3962
mainProgram = "wal";

0 commit comments

Comments
 (0)