mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
39 lines
685 B
Nix
39 lines
685 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, msgpack
|
|
, numpy
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msgpack-numpy";
|
|
version = "0.4.4.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a02c0069fb580c6a2dda9b98d40d34fda3840863112a5465ba9b54fa2ee005a5";
|
|
};
|
|
|
|
buildInputs = [
|
|
cython
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
msgpack
|
|
numpy
|
|
];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} msgpack_numpy.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Numpy data type serialization using msgpack";
|
|
homepage = "https://github.com/lebedov/msgpack-numpy";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ aborsu ];
|
|
};
|
|
}
|