summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/colormath2/default.nix
blob: e4175a62e6b4c1aa9e71aa124372187c8c84d221 (plain)
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
32
33
34
35
36
37
38
39
40
41
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  networkx,
  numpy,
  pytest7CheckHook,
}:

buildPythonPackage rec {
  pname = "colormath2";
  version = "3.0.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bkmgit";
    repo = "python-colormath2";
    tag = version;
    hash = "sha256-G8b0L8A2RzbVQFPNg2fuBklqTNjo3yqvek/+GnqtsHc=";
  };

  build-system = [ setuptools ];

  dependencies = [
    networkx
    numpy
  ];

  nativeCheckInputs = [ pytest7CheckHook ];

  pythonImportsCheck = [ "colormath2" ];

  meta = {
    description = "Color math and conversion library (fork)";
    homepage = "https://github.com/bkmgit/python-colormath2";
    changelog = "https://github.com/bkmgit/python-colormath2/releases/tag/${version}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ apraga ];
  };
}