From 5568e25fa029272a341a502da4ad6182f7458f0f Mon Sep 17 00:00:00 2001 From: Augustin Borsu Date: Thu, 8 Mar 2018 00:10:24 +0100 Subject: [PATCH] python.msgpack-numpy: init 0.4.1 --- .../python-modules/msgpack-numpy/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/msgpack-numpy/default.nix diff --git a/pkgs/development/python-modules/msgpack-numpy/default.nix b/pkgs/development/python-modules/msgpack-numpy/default.nix new file mode 100644 index 000000000000..0244b03c4842 --- /dev/null +++ b/pkgs/development/python-modules/msgpack-numpy/default.nix @@ -0,0 +1,38 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, cython +, msgpack-python +, numpy +, python +}: + +buildPythonPackage rec { + pname = "msgpack-numpy"; + version = "0.4.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1czf125nixzwskiqiw0145kfj15030sp334cb89gp5w4rz3h7img"; + }; + + buildInputs = [ + cython + ]; + + propagatedBuildInputs = [ + msgpack-python + numpy + ]; + + checkPhase = '' + ${python.interpreter} msgpack_numpy.py + ''; + + meta = with stdenv.lib; { + description = "Practical Machine Learning for NLP in Python"; + homepage = https://github.com/lebedov/msgpack-numpy; + license = licenses.bsd3; + maintainers = with maintainers; [ aborsu ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4529f7febd41..33b971d3564d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10161,6 +10161,8 @@ in { msgpack = callPackage ../development/python-modules/msgpack {}; + msgpack-numpy = callPackage ../development/python-modules/msgpack-numpy {}; + msgpack-python = self.msgpack.overridePythonAttrs { pname = "msgpack-python"; postPatch = ''