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";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "2.6.5";
|
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;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-MP1pNkr0fAyWWVHJVHiaVEn1UsbVsjU9MZHHAQYtPYI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
sundials
|
|
|
|
scipy
|
|
|
|
] ++ lib.optionals (!isPy3k) [ enum34 ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|