File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed
Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change 33 python3 ,
44 fetchFromGitHub ,
55 imagemagick ,
6+ installShellFiles ,
7+ nix-update-script ,
68} :
79
810python3 . 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" ;
You can’t perform that action at this time.
0 commit comments