Merge pull request #294056 from yl3dy/pydmd_1_0_0

python311Packages.pydmd: 0.4.0post2302 -> 1.0.0

authored by OTABI Tomoya and committed by GitHub a8217b75 ddd57d79

+47 -36
+47 -36
pkgs/development/python-modules/pydmd/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 + , setuptools 5 6 , future 6 7 , matplotlib 7 8 , numpy 8 9 , pytestCheckHook 10 + , pytest-mock 9 11 , pythonOlder 10 12 , scipy 11 13 , ezyrb 12 14 }: 13 15 14 - buildPythonPackage rec { 15 - pname = "pydmd"; 16 - version = "0.4.0.post2302"; 17 - format = "setuptools"; 16 + let 17 + self = buildPythonPackage rec { 18 + pname = "pydmd"; 19 + version = "1.0.0"; 20 + pyproject = true; 18 21 19 - disabled = pythonOlder "3.6"; 22 + disabled = pythonOlder "3.6"; 20 23 21 - src = fetchFromGitHub { 22 - owner = "mathLab"; 23 - repo = "PyDMD"; 24 - rev = "refs/tags/v${version}"; 25 - hash = "sha256-EYVmaxwOxje3KVrNbvsjwRqQBD7Rje/JK+qB1F7EqA0="; 26 - }; 24 + src = fetchFromGitHub { 25 + owner = "PyDMD"; 26 + repo = "PyDMD"; 27 + rev = "refs/tags/v${version}"; 28 + hash = "sha256-vprvq3sl/eNtu4cqg0A4XV96dzUt0nOtPmfwEv0h+PI="; 29 + }; 27 30 28 - propagatedBuildInputs = [ 29 - future 30 - matplotlib 31 - numpy 32 - scipy 33 - ezyrb 31 + build-system = [ 32 + setuptools 34 33 ]; 35 34 36 - nativeCheckInputs = [ 37 - pytestCheckHook 38 - ]; 35 + propagatedBuildInputs = [ 36 + future 37 + matplotlib 38 + numpy 39 + scipy 40 + ezyrb 41 + ]; 42 + 43 + nativeCheckInputs = [ 44 + pytestCheckHook 45 + pytest-mock 46 + ]; 47 + 48 + pytestFlagsArray = [ 49 + "tests/test_dmdbase.py" 50 + ]; 39 51 40 - pytestFlagsArray = [ 41 - # test suite takes over 100 vCPU hours, just run small subset of it. 42 - # TODO: Add a passthru.tests with all tests 43 - "tests/test_dmdbase.py" 44 - ]; 52 + pythonImportsCheck = [ 53 + "pydmd" 54 + ]; 45 55 46 - pythonImportsCheck = [ 47 - "pydmd" 48 - ]; 56 + passthru.tests = self.overrideAttrs (old: { 57 + pytestFlagsArray = []; 58 + }); 49 59 50 - meta = with lib; { 51 - description = "Python Dynamic Mode Decomposition"; 52 - homepage = "https://mathlab.github.io/PyDMD/"; 53 - changelog = "https://github.com/mathLab/PyDMD/releases/tag/v${version}"; 54 - license = licenses.mit; 55 - maintainers = with maintainers; [ yl3dy ]; 56 - broken = stdenv.hostPlatform.isAarch64; 60 + meta = with lib; { 61 + description = "Python Dynamic Mode Decomposition"; 62 + homepage = "https://pydmd.github.io/PyDMD/"; 63 + changelog = "https://github.com/PyDMD/PyDMD/releases/tag/v${version}"; 64 + license = licenses.mit; 65 + maintainers = with maintainers; [ yl3dy ]; 66 + broken = stdenv.hostPlatform.isAarch64; 67 + }; 57 68 }; 58 - } 69 + in self