1{ buildPythonPackage
2, fetchFromGitHub
3, networkx
4, nose
5, numpy
6, lib
7, pytest
8}:
9
10buildPythonPackage rec {
11 pname = "colormath";
12 version = "3.0.0";
13
14 src = fetchFromGitHub {
15 owner = "gtaylor";
16 rev = "3.0.0";
17 repo = "python-colormath";
18 sha256 = "1nqf5wy8ikx2g684khzvjc4iagkslmbsxxwilbv4jpaznr9lahdl";
19 };
20
21 propagatedBuildInputs = [ networkx numpy ];
22
23 checkInputs = [ nose ];
24 checkPhase = "nosetests";
25
26 meta = with lib; {
27 description = "Color math and conversion library";
28 homepage = "https://github.com/gtaylor/python-colormath";
29 license = licenses.bsd2;
30 maintainers = with maintainers; [ jonathanreeve ];
31 };
32}