depot/third_party/nixpkgs/pkgs/development/python-modules/colour/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
776 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 ];
pytestFlagsArray = [
"--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;
};
}