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