about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-07-02 23:12:27 +0200
committerFlorian Klink <flokli@flokli.de>2019-09-08 16:03:23 -0700
commit652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d (patch)
tree5d19aa07b40373845c99b5d6ce6baee834221041 /pkgs/development/python-modules
parenta5de10b0afe5bcab41fc41a0dbebfbd99223a4dc (diff)
downloadnixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.tar
nixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.tar.gz
nixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.tar.bz2
nixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.tar.lz
nixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.tar.xz
nixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.tar.zst
nixlib-652448f25bb4a21e6d7c8ab5fc8e9a52f3430e0d.zip
python.pkgs.scikits-odes: init at 2.4.0-9-g93075ae
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/scikits-odes/default.nix55
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/scikits-odes/default.nix b/pkgs/development/python-modules/scikits-odes/default.nix
new file mode 100644
index 000000000000..89ffe334e7ff
--- /dev/null
+++ b/pkgs/development/python-modules/scikits-odes/default.nix
@@ -0,0 +1,55 @@
+{ stdenv
+, lib
+, buildPythonPackage
+, fetchFromGitHub
+, fetchurl
+, cython
+, enum34
+, gfortran
+, isPy3k
+, numpy
+, pytest
+, python
+, scipy
+, sundials_3
+}:
+
+buildPythonPackage rec {
+  pname = "scikits.odes";
+  version = "2.4.0-9-g93075ae";
+
+  # we fetch github instead of Pypi, as we want #104 and #105, which don't apply cleanly on 2.4.0
+  src = fetchFromGitHub {
+    owner = "bmcage";
+    repo = "odes";
+    rev = "93075ae25c409f572f13ca7207fada5706f73c73";
+    sha256 = "161rab7hy6r1a9xw1zby9xhnnmxi0zwdpzxfpjkw9651xn2k5xyw";
+  };
+
+  nativeBuildInputs = [
+    gfortran
+    cython
+  ];
+
+  propagatedBuildInputs = [
+    numpy
+    sundials_3
+    scipy
+  ] ++ lib.optionals (!isPy3k) [ enum34 ];
+
+  doCheck = true;
+  checkInputs = [ pytest ];
+
+  checkPhase = ''
+    cd $out/${python.sitePackages}/scikits/odes/tests
+    pytest
+  '';
+
+  meta = with stdenv.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; [ flokli idontgetoutmuch ];
+    platforms = [ "aarch64-linux" "x86_64-linux" "x86_64-darwin" ];
+  };
+}