1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 networkx,
7 numpy,
8 pytest7CheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "colormath2";
13 version = "3.0.3";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "bkmgit";
18 repo = "python-colormath2";
19 tag = version;
20 hash = "sha256-G8b0L8A2RzbVQFPNg2fuBklqTNjo3yqvek/+GnqtsHc=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 networkx
27 numpy
28 ];
29
30 nativeCheckInputs = [ pytest7CheckHook ];
31
32 pythonImportsCheck = [ "colormath2" ];
33
34 meta = {
35 description = "Color math and conversion library (fork)";
36 homepage = "https://github.com/bkmgit/python-colormath2";
37 changelog = "https://github.com/bkmgit/python-colormath2/releases/tag/${version}";
38 license = lib.licenses.bsd3;
39 maintainers = with lib.maintainers; [ apraga ];
40 };
41}