2016-12-25 10:11:45 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, glibcLocales
|
2016-12-25 15:17:33 +00:00
|
|
|
, python
|
2016-12-25 10:11:45 +00:00
|
|
|
}:
|
|
|
|
|
2017-11-09 11:26:09 +00:00
|
|
|
buildPythonPackage rec {
|
2016-12-25 10:11:45 +00:00
|
|
|
pname = "u-msgpack-python";
|
2017-05-27 13:24:47 +01:00
|
|
|
version = "2.4.1";
|
2016-12-25 10:11:45 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
2017-05-27 13:24:47 +01:00
|
|
|
sha256 = "2f31fc1b6dd8632c230ea7012470e40f77119f20999274dda6f1afa9c305e590";
|
2016-12-25 10:11:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2016-12-25 15:17:33 +00:00
|
|
|
${python.interpreter} -m unittest discover
|
2016-12-25 10:11:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A portable, lightweight MessagePack serializer and deserializer written in pure Python";
|
|
|
|
homepage = https://github.com/vsergeev/u-msgpack-python;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
|
2016-12-25 15:17:33 +00:00
|
|
|
}
|