Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / colour / default.nix
blob2dd31a02bbe7748d4337d4211f06a021ac8d9763
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pytestCheckHook
5 }:
7 buildPythonPackage rec {
8   pname = "colour";
9   version = "0.1.5";
10   format = "setuptools";
12   src = fetchPypi {
13     inherit pname version;
14     hash = "sha256-ryASD+/Sr+3osAH77y6p2nCtfUn6/bZIkCXa6HRcOu4=";
15   };
17   patches = [
18     # https://github.com/vaab/colour/pull/66 (but does not merge cleanly)
19     ./remove-unmaintained-d2to1.diff
20   ];
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   pytestFlagsArray = [
27     "--doctest-glob=\"*.rst\""
28     "--doctest-modules"
29   ];
31   pythonImportsCheck = [
32     "colour"
33   ];
35   meta = with lib; {
36     description = "Converts and manipulates common color representation (RGB, HSV, web, ...)";
37     homepage = "https://github.com/vaab/colour";
38     license = licenses.bsd2;
39   };