65 lines
1.3 KiB
Nix
65 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
imagemagick,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "pywal16";
|
|
version = "3.8.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eylles";
|
|
repo = "pywal16";
|
|
tag = version;
|
|
hash = "sha256-43nKFTkIqaG9UzAjvNbZAog3NLMRKdtnZHxiiiBuD/4=";
|
|
};
|
|
|
|
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/refs/tags/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ moraxyc ];
|
|
mainProgram = "wal";
|
|
};
|
|
}
|