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