2018-03-07 23:10:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, cython
|
2018-04-06 14:59:31 +01:00
|
|
|
, msgpack
|
2018-03-07 23:10:24 +00:00
|
|
|
, numpy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msgpack-numpy";
|
2020-07-31 09:56:41 +01:00
|
|
|
version = "0.4.6.1";
|
2018-03-07 23:10:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-31 09:56:41 +01:00
|
|
|
sha256 = "9f9b57abb2b155c2d3e411c2dd5b98f14998bd053a20c6ed0ab64a6ceb8ad51d";
|
2018-03-07 23:10:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-04-06 14:59:31 +01:00
|
|
|
msgpack
|
2018-03-07 23:10:24 +00:00
|
|
|
numpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} msgpack_numpy.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-08-05 23:14:33 +01:00
|
|
|
description = "Numpy data type serialization using msgpack";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/lebedov/msgpack-numpy";
|
2018-03-07 23:10:24 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ aborsu ];
|
|
|
|
};
|
|
|
|
}
|