2024-07-01 15:47:52 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3,
|
|
|
|
fetchFromGitHub,
|
|
|
|
imagemagick,
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "pywal16";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.6.0";
|
2024-07-01 15:47:52 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eylles";
|
|
|
|
repo = "pywal16";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-YKHOH1bEsZHTgYm8AYpfA6C8RtWxAqNQ+GHMcdaj/JU=";
|
2024-07-01 15:47:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3.pkgs.setuptools ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
python3.pkgs.pytestCheckHook
|
|
|
|
imagemagick
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pywal" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "16 colors fork of pywal";
|
|
|
|
homepage = "https://github.com/eylles/pywal16";
|
|
|
|
changelog = "https://github.com/eylles/pywal16/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ moraxyc ];
|
|
|
|
mainProgram = "wal";
|
|
|
|
};
|
|
|
|
}
|