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