My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/scikits-odes/default.nix

53 lines
999 B

{ lib
, buildPythonPackage
, fetchPypi
, cython
, enum34
, gfortran
, isPy27
, isPy3k
, numpy
, pytest
, python
, scipy
, sundials
}:
buildPythonPackage rec {
pname = "scikits.odes";
version = "2.6.3";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "9693da78d1bd0bd6af8db59aeaaed92a399c6af36960c6a0a665a2130eab59e7";
};
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" ];
};
}