2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-07-02 22:12:27 +01:00
|
|
|
, buildPythonPackage
|
2020-02-19 14:38:11 +00:00
|
|
|
, fetchPypi
|
2019-07-02 22:12:27 +01:00
|
|
|
, fetchurl
|
|
|
|
, cython
|
|
|
|
, enum34
|
|
|
|
, gfortran
|
2020-08-10 11:15:37 +01:00
|
|
|
, isPy27
|
2019-07-02 22:12:27 +01:00
|
|
|
, isPy3k
|
|
|
|
, numpy
|
|
|
|
, pytest
|
|
|
|
, python
|
|
|
|
, scipy
|
2020-02-19 14:29:38 +00:00
|
|
|
, sundials
|
2019-07-02 22:12:27 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikits.odes";
|
2020-02-19 14:38:11 +00:00
|
|
|
version = "2.6.1";
|
2019-07-02 22:12:27 +01:00
|
|
|
|
2020-08-10 11:15:37 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2020-02-19 14:38:11 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0kbf2n16h9s35x6pavlx6sff0pqr68i0x0609z92a4vadni32n6b";
|
2019-07-02 22:12:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
2020-02-19 14:29:38 +00:00
|
|
|
sundials
|
2019-07-02 22:12:27 +01:00
|
|
|
scipy
|
|
|
|
] ++ lib.optionals (!isPy3k) [ enum34 ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
cd $out/${python.sitePackages}/scikits/odes/tests
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-02 22:12:27 +01:00
|
|
|
description = "A scikit offering extra ode/dae solvers, as an extension to what is available in scipy";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bmcage/odes";
|
2019-07-02 22:12:27 +01:00
|
|
|
license = licenses.bsd3;
|
2020-09-23 10:56:52 +01:00
|
|
|
maintainers = with maintainers; [ idontgetoutmuch ];
|
2019-07-02 22:12:27 +01:00
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
}
|