nixpkgs/pkgs/development/python-modules/scikits-odes/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

54 lines
990 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, cython
, enum34
, gfortran
, isPy27
, isPy3k
, numpy
, pytest
, python
, scipy
, sundials
}:
buildPythonPackage rec {
pname = "scikits.odes";
version = "2.7.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-px4Z4UhYk3VK6MBQZoIy/MaU8XuDYC51++v3v5+XXh4=";
};
nativeBuildInputs = [
gfortran
cython
];
propagatedBuildInputs = [
numpy
sundials
scipy
] ++ lib.optionals (!isPy3k) [ enum34 ];
doCheck = true;
nativeCheckInputs = [ 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" ];
};
}