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.3.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "31fd5dd009bbee7f8b107db8c859e3a0a2793acc196f25ffbbae1e71b4c63ca5";
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}