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 pytestCheckHook,
17}:
18
19buildPythonPackage rec {
20 pname = "mizani";
21 version = "0.13.1";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "has2k1";
26 repo = "mizani";
27 tag = "v${version}";
28 hash = "sha256-3eEOkrF3Sn5ZETnxgc5spwHlbJAiDhkJkd5LwMl0QEY=";
29 };
30
31 build-system = [ setuptools-scm ];
32
33 dependencies = [
34 matplotlib
35 palettable
36 pandas
37 scipy
38 ];
39
40 nativeCheckInputs = [ pytestCheckHook ];
41
42 postPatch = ''
43 substituteInPlace pyproject.toml \
44 --replace " --cov=mizani --cov-report=xml" ""
45 '';
46
47 pythonImportsCheck = [ "mizani" ];
48
49 meta = {
50 description = "Scales for Python";
51 homepage = "https://github.com/has2k1/mizani";
52 changelog = "https://github.com/has2k1/mizani/releases/tag/v${version}";
53 license = lib.licenses.bsd3;
54 maintainers = with lib.maintainers; [ samuela ];
55 };
56}