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";
|
2018-07-22 11:13:27 +01:00
|
|
|
version = "0.4.3.1";
|
2018-03-07 23:10:24 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:13:27 +01:00
|
|
|
sha256 = "31fd5dd009bbee7f8b107db8c859e3a0a2793acc196f25ffbbae1e71b4c63ca5";
|
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; {
|
|
|
|
description = "Practical Machine Learning for NLP in Python";
|
|
|
|
homepage = https://github.com/lebedov/msgpack-numpy;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ aborsu ];
|
|
|
|
};
|
|
|
|
}
|