Skip to content

Commit

Permalink
pywal16: 3.6.0 -> 3.7.2; add {manpage,optional-dependencies,updateScr…
Browse files Browse the repository at this point in the history
…ipt} (#359741)
  • Loading branch information
GaetanLepage authored Dec 11, 2024
2 parents 6041b19 + e2317b1 commit 7dca174
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions pkgs/by-name/py/pywal16/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,60 @@
python3,
fetchFromGitHub,
imagemagick,
installShellFiles,
nix-update-script,
}:

python3.pkgs.buildPythonApplication rec {
pname = "pywal16";
version = "3.6.0";
version = "3.7.2";
pyproject = true;

src = fetchFromGitHub {
owner = "eylles";
repo = "pywal16";
rev = "refs/tags/${version}";
hash = "sha256-YKHOH1bEsZHTgYm8AYpfA6C8RtWxAqNQ+GHMcdaj/JU=";
tag = version;
hash = "sha256-aizuON8Y321i7bF2SuC5UC1iOWHY217ccfzY9WmaevQ=";
};

nativeBuildInputs = [ python3.pkgs.setuptools ];
build-system = [ python3.pkgs.setuptools ];

nativeBuildInputs = [ installShellFiles ];

nativeCheckInputs = [
python3.pkgs.pytestCheckHook
imagemagick
];

postInstall = ''
installManPage data/man/man1/wal.1
'';

preCheck = ''
export HOME=$(mktemp -d)
'';

pythonImportsCheck = [ "pywal" ];

optional-dependencies = with python3.pkgs; {
colorthief = [ colorthief ];
colorz = [ colorz ];
fast-colorthief = [ fast-colorthief ];
haishoku = [ haishoku ];
all = [
colorthief
colorz
ast-colorthief
haishoku
];
};

passthru.updateScript = nix-update-script { };

meta = {
description = "16 colors fork of pywal";
homepage = "https://github.com/eylles/pywal16";
changelog = "https://github.com/eylles/pywal16/blob/${src.rev}/CHANGELOG.md";
changelog = "https://github.com/eylles/pywal16/blob/refs/tags/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "wal";
Expand Down

0 comments on commit 7dca174

Please sign in to comment.