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.6.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "9f9b57abb2b155c2d3e411c2dd5b98f14998bd053a20c6ed0ab64a6ceb8ad51d";
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 = "Numpy data type serialization using msgpack";
34 homepage = "https://github.com/lebedov/msgpack-numpy";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ aborsu ];
37 };
38}