pywal16: 3.6.0 -> 3.7.2; add {manpage,optional-dependencies,updateScript} (#359741)

This commit is contained in:
Gaétan Lepage
2024-12-11 16:31:47 +01:00
committed by GitHub
+28 -5
View File
@@ -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";