Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
767 B
Nix
38 lines
767 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "colour";
|
|
version = "0.1.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ryASD+/Sr+3osAH77y6p2nCtfUn6/bZIkCXa6HRcOu4=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/vaab/colour/pull/66 (but does not merge cleanly)
|
|
./remove-unmaintained-d2to1.diff
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlags = [
|
|
"--doctest-glob=*.rst"
|
|
"--doctest-modules"
|
|
];
|
|
|
|
pythonImportsCheck = [ "colour" ];
|
|
|
|
meta = with lib; {
|
|
description = "Converts and manipulates common color representation (RGB, HSV, web, ...)";
|
|
homepage = "https://github.com/vaab/colour";
|
|
license = licenses.bsd2;
|
|
};
|
|
}
|