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";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "2.6.2";
|
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;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "267d8bfa1e18d075d574158053d887562381e88176ebab856516b52b14860983";
|
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" ];
|
|
|
|
};
|
|
|
|
}
|