1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 setuptools-scm,
8
9 # dependencies
10 matplotlib,
11 palettable,
12 pandas,
13 scipy,
14
15 # tests
16 pytest-cov-stub,
17 pytestCheckHook,
18}:
19
20buildPythonPackage rec {
21 pname = "mizani";
22 version = "0.14.2";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "has2k1";
27 repo = "mizani";
28 tag = "v${version}";
29 hash = "sha256-g7eGajqFLgFWxNKefuYVWF439zVohU8W1j3w91nblEY=";
30 };
31
32 build-system = [ setuptools-scm ];
33
34 dependencies = [
35 matplotlib
36 palettable
37 pandas
38 scipy
39 ];
40
41 nativeCheckInputs = [
42 pytest-cov-stub
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "mizani" ];
47
48 meta = {
49 description = "Scales for Python";
50 homepage = "https://github.com/has2k1/mizani";
51 changelog = "https://github.com/has2k1/mizani/releases/tag/v${version}";
52 license = lib.licenses.bsd3;
53 maintainers = with lib.maintainers; [ samuela ];
54 };
55}