depot/third_party/nixpkgs/pkgs/development/python-modules/pydmd/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

69 lines
1.2 KiB
Nix

{ 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