nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, buildPythonPackage
4, fetchFromGitHub
5, future
6, matplotlib
7, numpy
8, pytestCheckHook
9, pythonOlder
10, scipy
11}:
12
13buildPythonPackage rec {
14 pname = "pydmd";
15 version = "0.4";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = "mathLab";
22 repo = "PyDMD";
23 rev = "v${version}";
24 sha256 = "1qwa3dyrrm20x0pzr7rklcw7433fd822n4m8bbbdd7z83xh6xm8g";
25 };
26
27 propagatedBuildInputs = [
28 future
29 matplotlib
30 numpy
31 scipy
32 ];
33
34 checkInputs = [
35 pytestCheckHook
36 ];
37
38 pytestFlagsArray = [
39 # test suite takes over 100 vCPU hours, just run small subset of it.
40 # TODO: Add a passthru.tests with all tests
41 "tests/test_dmdbase.py"
42 ];
43
44 pythonImportsCheck = [
45 "pydmd"
46 ];
47
48 meta = with lib; {
49 description = "Python Dynamic Mode Decomposition";
50 homepage = "https://mathlab.github.io/PyDMD/";
51 license = licenses.mit;
52 maintainers = with maintainers; [ yl3dy ];
53 broken = stdenv.hostPlatform.isAarch64;
54 };
55}