anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / colour / default.nix
blobde2006bacb2d51b4c5da332d86215a192c5ed9e8
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pytestCheckHook,
6 }:
8 buildPythonPackage rec {
9   pname = "colour";
10   version = "0.1.5";
11   format = "setuptools";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-ryASD+/Sr+3osAH77y6p2nCtfUn6/bZIkCXa6HRcOu4=";
16   };
18   patches = [
19     # https://github.com/vaab/colour/pull/66 (but does not merge cleanly)
20     ./remove-unmaintained-d2to1.diff
21   ];
23   nativeCheckInputs = [ pytestCheckHook ];
25   pytestFlagsArray = [
26     "--doctest-glob=\"*.rst\""
27     "--doctest-modules"
28   ];
30   pythonImportsCheck = [ "colour" ];
32   meta = with lib; {
33     description = "Converts and manipulates common color representation (RGB, HSV, web, ...)";
34     homepage = "https://github.com/vaab/colour";
35     license = licenses.bsd2;
36   };