about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2019-07-11 17:43:34 -0400
committerFrederik Rietdijk <freddyrietdijk@fridh.nl>2019-07-28 11:34:44 +0200
commitbabeb7361e3934b9656ae3260aae04a79ac6faba (patch)
treea955a42643376bbd1be0163a3100d1e5e4f3b013
parent1ff227a9793a036e961f90f95c11be9f95ba2db2 (diff)
downloadnixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.tar
nixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.tar.gz
nixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.tar.bz2
nixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.tar.lz
nixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.tar.xz
nixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.tar.zst
nixlib-babeb7361e3934b9656ae3260aae04a79ac6faba.zip
pythonPackages.scikit-fmm: init at 2019.1.30
-rw-r--r--pkgs/development/python-modules/scikit-fmm/default.nix32
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/scikit-fmm/default.nix b/pkgs/development/python-modules/scikit-fmm/default.nix
new file mode 100644
index 000000000000..122af8cfda23
--- /dev/null
+++ b/pkgs/development/python-modules/scikit-fmm/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, numpy
+, python
+}:
+
+buildPythonPackage rec {
+  pname = "scikit-fmm";
+  version = "2019.1.30";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "eb64b6d8e30b8df8f8636d5fc4fd7ca6a9b05938ccd62518c80c1d9e823069dd";
+  };
+
+  propagatedBuildInputs = [
+    numpy
+  ];
+
+  checkPhase = ''
+    mkdir testdir; cd testdir
+    ${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())"
+  '';
+
+  meta = with lib; {
+    description = "A Python extension module which implements the fast marching method";
+    homepage = https://github.com/scikit-fmm/scikit-fmm;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ costrouc ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 39d91233d393..335a4fa827b7 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -4680,6 +4680,8 @@ in {
 
   scikit-tda = callPackage ../development/python-modules/scikit-tda { };
 
+  scikit-fmm = callPackage ../development/python-modules/scikit-fmm { };
+
   scp = callPackage ../development/python-modules/scp {};
 
   seaborn = callPackage ../development/python-modules/seaborn { };