2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-07-27 06:49:29 +00:00
|
|
|
pythonAtLeast,
|
2024-06-05 15:53:02 +00:00
|
|
|
cython,
|
|
|
|
enum34,
|
|
|
|
gfortran,
|
|
|
|
isPy27,
|
|
|
|
isPy3k,
|
|
|
|
numpy,
|
|
|
|
pytest,
|
|
|
|
python,
|
|
|
|
scipy,
|
|
|
|
sundials,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikits.odes";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.7.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
# https://github.com/bmcage/odes/issues/130
|
|
|
|
disabled = isPy27 || pythonAtLeast "3.12";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-px4Z4UhYk3VK6MBQZoIy/MaU8XuDYC51++v3v5+XXh4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
sundials
|
|
|
|
scipy
|
|
|
|
] ++ lib.optionals (!isPy3k) [ enum34 ];
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd $out/${python.sitePackages}/scikits/odes/tests
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Scikit offering extra ode/dae solvers, as an extension to what is available in scipy";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bmcage/odes";
|
|
|
|
license = licenses.bsd3;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ idontgetoutmuch ];
|
2024-06-05 15:53:02 +00:00
|
|
|
platforms = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"x86_64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|