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
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "u-msgpack-python";
|
|
|
|
version = "2.3.0";
|
|
|
|
in buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
|
|
|
sha256 = "d8df6bb0e2a838aa227c39cfd14aa147ab32b3df6871001874e9b9da9ce1760c";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
}
|