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