1{ buildPythonPackage
2, fetchFromGitHub
3, networkx
4, nose
5, numpy
6, lib
7}:
8
9buildPythonPackage rec {
10 pname = "colormath";
11 # Switch to unstable which fixes an deprecation issue with newer numpy
12 # versions, should be included in versions > 3.0
13 # https://github.com/gtaylor/python-colormath/issues/104
14 version = "unstable-2021-04-17";
15
16 src = fetchFromGitHub {
17 owner = "gtaylor";
18 repo = "python-colormath";
19 rev = "4a076831fd5136f685aa7143db81eba27b2cd19a";
20 hash = "sha256-eACVPIQFgiGiVmQ/PjUxP/UH/hBOsCywz5PlgpA4dk4=";
21 };
22
23 propagatedBuildInputs = [ networkx numpy ];
24
25 nativeCheckInputs = [ nose ];
26
27 checkPhase = "nosetests";
28
29 pythonImportsCheck = [ "colormath" ];
30
31 meta = with lib; {
32 description = "Color math and conversion library";
33 homepage = "https://github.com/gtaylor/python-colormath";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ jonathanreeve ];
36 };
37}