nixpkgs-suyu/pkgs/development/python-modules/scikits-odes/default.nix
2021-11-12 19:10:54 -08:00

53 lines
999 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cython
, enum34
, gfortran
, isPy27
, isPy3k
, numpy
, pytest
, python
, scipy
, sundials
}:
buildPythonPackage rec {
pname = "scikits.odes";
version = "2.6.2";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "267d8bfa1e18d075d574158053d887562381e88176ebab856516b52b14860983";
};
nativeBuildInputs = [
gfortran
cython
];
propagatedBuildInputs = [
numpy
sundials
scipy
] ++ lib.optionals (!isPy3k) [ enum34 ];
doCheck = true;
checkInputs = [ pytest ];
checkPhase = ''
cd $out/${python.sitePackages}/scikits/odes/tests
pytest
'';
meta = with lib; {
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;
maintainers = with maintainers; [ idontgetoutmuch ];
platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ];
};
}