From aaa1af9bde4d32cedae4f3bdadfe4e615ce18d22 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Wed, 10 Oct 2018 21:21:09 -0400 Subject: [PATCH] pythonPackages.hdmedians: init at 0.13 --- .../python-modules/hdmedians/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/python-modules/hdmedians/default.nix diff --git a/pkgs/development/python-modules/hdmedians/default.nix b/pkgs/development/python-modules/hdmedians/default.nix new file mode 100644 index 000000000000..5dbf6215574a --- /dev/null +++ b/pkgs/development/python-modules/hdmedians/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, cython +, numpy +}: + +buildPythonPackage rec { + version = "0.13"; + pname = "hdmedians"; + + src = fetchPypi { + inherit pname version; + sha256 = "230f80e064d905c49a1941af1b7e806e2f22b3c9a90ad5c21fd17d72636ea277"; + }; + + buildInputs = [ cython ]; + checkInputs = [ nose ]; + propagatedBuildInputs = [ numpy ]; + + # cannot resolve path for packages in tests + doCheck = false; + + checkPhase = '' + nosetests + ''; + + meta = with stdenv.lib; { + homepage = http://github.com/daleroberts/hdmedians; + description = "High-dimensional medians"; + license = licenses.gpl3; + maintainers = [ maintainers.costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 35251c154450..82638130220e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -364,6 +364,8 @@ in { histbook = callPackage ../development/python-modules/histbook { }; + hdmedians = callPackage ../development/python-modules/hdmedians { }; + httpsig = callPackage ../development/python-modules/httpsig { }; i3ipc = callPackage ../development/python-modules/i3ipc { }; @@ -561,7 +563,7 @@ in { slurm = pkgs.slurm; }; - pystache = callPackage ../development/python-modules/pystache { }; + pystache = callPackage ../development/python-modules/pystache { }; pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };