about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pydmd/default.nix
blob: 3cf1f14f70e2ec924ad48622787590e478980e1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, setuptools
, future
, matplotlib
, numpy
, pytestCheckHook
, pytest-mock
, pythonOlder
, scipy
, ezyrb
}:

let
  self = buildPythonPackage rec {
    pname = "pydmd";
    version = "1.0.0";
    pyproject = true;

    disabled = pythonOlder "3.6";

    src = fetchFromGitHub {
      owner = "PyDMD";
      repo = "PyDMD";
      rev = "refs/tags/v${version}";
      hash = "sha256-vprvq3sl/eNtu4cqg0A4XV96dzUt0nOtPmfwEv0h+PI=";
    };

    build-system = [
      setuptools
  ];

    propagatedBuildInputs = [
      future
      matplotlib
      numpy
      scipy
      ezyrb
    ];

    nativeCheckInputs = [
      pytestCheckHook
      pytest-mock
    ];

    pytestFlagsArray = [
      "tests/test_dmdbase.py"
    ];

    pythonImportsCheck = [
      "pydmd"
    ];

    passthru.tests = self.overrideAttrs (old: {
      pytestFlagsArray = [];
    });

    meta = with lib; {
      description = "Python Dynamic Mode Decomposition";
      homepage = "https://pydmd.github.io/PyDMD/";
      changelog = "https://github.com/PyDMD/PyDMD/releases/tag/v${version}";
      license = licenses.mit;
      maintainers = with maintainers; [ yl3dy ];
      broken = stdenv.hostPlatform.isAarch64;
    };
  };
in self