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