Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, fetchurl 6, cython 7, enum34 8, gfortran 9, isPy3k 10, numpy 11, pytest 12, python 13, scipy 14, sundials 15}: 16 17buildPythonPackage rec { 18 pname = "scikits.odes"; 19 version = "2.6.1"; 20 disabled = !isPy3k; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "0kbf2n16h9s35x6pavlx6sff0pqr68i0x0609z92a4vadni32n6b"; 25 }; 26 27 nativeBuildInputs = [ 28 gfortran 29 cython 30 ]; 31 32 propagatedBuildInputs = [ 33 numpy 34 sundials 35 scipy 36 ] ++ lib.optionals (!isPy3k) [ enum34 ]; 37 38 doCheck = true; 39 checkInputs = [ pytest ]; 40 41 checkPhase = '' 42 cd $out/${python.sitePackages}/scikits/odes/tests 43 pytest 44 ''; 45 46 meta = with stdenv.lib; { 47 description = "A scikit offering extra ode/dae solvers, as an extension to what is available in scipy"; 48 homepage = "https://github.com/bmcage/odes"; 49 license = licenses.bsd3; 50 maintainers = with maintainers; [ flokli idontgetoutmuch ]; 51 platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ]; 52 }; 53}