Unverified Commit a8217b75 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #294056 from yl3dy/pydmd_1_0_0

python311Packages.pydmd: 0.4.0post2302 -> 1.0.0
parents ddd57d79 c50ca6e5
Loading
Loading
Loading
Loading
+47 −36
Original line number Diff line number Diff line
@@ -2,29 +2,36 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, setuptools
, future
, matplotlib
, numpy
, pytestCheckHook
, pytest-mock
, pythonOlder
, scipy
, ezyrb
}:

buildPythonPackage rec {
let
  self = buildPythonPackage rec {
    pname = "pydmd";
  version = "0.4.0.post2302";
  format = "setuptools";
    version = "1.0.0";
    pyproject = true;

    disabled = pythonOlder "3.6";

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

    build-system = [
      setuptools
  ];

    propagatedBuildInputs = [
      future
      matplotlib
@@ -35,11 +42,10 @@ buildPythonPackage rec {

    nativeCheckInputs = [
      pytestCheckHook
      pytest-mock
    ];

    pytestFlagsArray = [
    # test suite takes over 100 vCPU hours, just run small subset of it.
    # TODO: Add a passthru.tests with all tests
      "tests/test_dmdbase.py"
    ];

@@ -47,12 +53,17 @@ buildPythonPackage rec {
      "pydmd"
    ];

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

    meta = with lib; {
      description = "Python Dynamic Mode Decomposition";
    homepage = "https://mathlab.github.io/PyDMD/";
    changelog = "https://github.com/mathLab/PyDMD/releases/tag/v${version}";
      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