2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
|
|
|
, enum34
|
|
|
|
, gfortran
|
2020-09-25 04:45:31 +00:00
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy3k
|
|
|
|
, numpy
|
|
|
|
, pytest
|
|
|
|
, python
|
|
|
|
, scipy
|
|
|
|
, sundials
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A scikit offering extra ode/dae solvers, as an extension to what is available in scipy";
|
|
|
|
homepage = "https://github.com/bmcage/odes";
|
|
|
|
license = licenses.bsd3;
|
2020-09-25 04:45:31 +00:00
|
|
|
maintainers = with maintainers; [ idontgetoutmuch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|