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-06-05 18:44:36 +01:00
|
|
|
version = "0.4.6.post0";
|
2018-03-07 23:10:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 18:44:36 +01:00
|
|
|
sha256 = "dfcb0c9cb5850e656344ac464a260e7b8b9b1c62d77c2e1d3d9ef15a88f1df6b";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|