nixpkgs/pkgs/development/python-modules/ezyrb/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

58 lines
1,008 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, future
, numpy
, scipy
, matplotlib
, scikit-learn
, torch
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "ezyrb";
version = "1.3.0.post2212";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mathLab";
repo = "EZyRB";
rev = "refs/tags/v${version}";
sha256 = "sha256-Em7t84fCTYCJfsjLGKhno75PheALhSbLH7z1mfgQ+v4=";
};
propagatedBuildInputs = [
future
numpy
scipy
matplotlib
scikit-learn
torch
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ezyrb"
];
disabledTestPaths = [
# Exclude long tests
"tests/test_podae.py"
];
meta = with lib; {
description = "Easy Reduced Basis method";
homepage = "https://mathlab.github.io/EZyRB/";
downloadPage = "https://github.com/mathLab/EZyRB/releases";
license = licenses.mit;
maintainers = with maintainers; [ yl3dy ];
};
}