about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/colormath/default.nix
blob: b749761da06cda5fa44366edd4726ad7b75d96c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ buildPythonPackage
, fetchFromGitHub
, networkx
, nose
, numpy
, lib
}:

buildPythonPackage rec {
  pname = "colormath";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "gtaylor";
    rev = "3.0.0";
    repo = "python-colormath";
    sha256 = "1nqf5wy8ikx2g684khzvjc4iagkslmbsxxwilbv4jpaznr9lahdl";
  };

  propagatedBuildInputs = [ networkx numpy ];

  checkInputs = [ nose ];
  checkPhase = "nosetests";

  meta = with lib; {
    description = "Color math and conversion library";
    homepage = "https://github.com/gtaylor/python-colormath";
    license = licenses.bsd2;
    maintainers = with maintainers; [ jonathanreeve ];
  };
}