From 26c194d000d641ddf2d892157ab2a520baa2a83f Mon Sep 17 00:00:00 2001 From: Assassinkin Date: Tue, 5 Jun 2018 23:50:28 +0100 Subject: [PATCH] pythonPackages.pykdtree: init at 1.3.0 (#41355) --- .../python-modules/pykdtree/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/pykdtree/default.nix diff --git a/pkgs/development/python-modules/pykdtree/default.nix b/pkgs/development/python-modules/pykdtree/default.nix new file mode 100644 index 000000000000..86524b6002d6 --- /dev/null +++ b/pkgs/development/python-modules/pykdtree/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, numpy, nose, openmp }: + +buildPythonPackage rec { + pname = "pykdtree"; + version = "1.3.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "79351b79087f473f83fb27a5cd552bd1056f2dfa7acec5d4a68f35a7cbea6776"; + }; + + buildInputs = [ openmp ]; + + propagatedBuildInputs = [ numpy ]; + + checkInputs = [ nose ]; + + meta = with stdenv.lib; { + description = "kd-tree implementation for fast nearest neighbour search in Python"; + homepage = https://github.com/storpipfugl/pykdtree; + license = licenses.lgpl3; + maintainers = with maintainers; [ psyanticy ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea308ca15901..2c4ab7805bda 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -384,6 +384,10 @@ in { callPackage = pkgs.callPackage; }; + pykdtree = callPackage ../development/python-modules/pykdtree { + inherit (pkgs.llvmPackages) openmp; + }; + pyparser = callPackage ../development/python-modules/pyparser { }; pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix {