1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, cython
5, msgpack
6, numpy
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "msgpack-numpy";
12 version = "0.4.4.2";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "a1638108538aaba55bebaef9d847dfb3064bb1c829e68301716a6a956fa6a0d6";
17 };
18
19 buildInputs = [
20 cython
21 ];
22
23 propagatedBuildInputs = [
24 msgpack
25 numpy
26 ];
27
28 checkPhase = ''
29 ${python.interpreter} msgpack_numpy.py
30 '';
31
32 meta = with stdenv.lib; {
33 description = "Practical Machine Learning for NLP in Python";
34 homepage = https://github.com/lebedov/msgpack-numpy;
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ aborsu ];
37 };
38}