2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-03-07 23:10:24 +00:00
|
|
|
, 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-11-06 19:16:29 +00:00
|
|
|
version = "0.4.7.1";
|
2018-03-07 23:10:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-06 19:16:29 +00:00
|
|
|
sha256 = "7eaf51acf82d7c467d21aa71df94e1c051b2055e54b755442051b474fa7cf5e1";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 ];
|
|
|
|
};
|
|
|
|
}
|