2016-12-25 11:11:45 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, glibcLocales
|
2016-12-25 16:17:33 +01:00
|
|
|
, python
|
2016-12-25 11:11:45 +01:00
|
|
|
}:
|
|
|
|
|
2017-11-09 12:26:09 +01:00
|
|
|
buildPythonPackage rec {
|
2016-12-25 11:11:45 +01:00
|
|
|
pname = "u-msgpack-python";
|
2018-04-04 20:18:30 +02:00
|
|
|
version = "2.5.0";
|
2016-12-25 11:11:45 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
2018-04-04 20:18:30 +02:00
|
|
|
sha256 = "7ff18ae3721fa75571f9329c08f7c0120416a6ae36194bd8674f65b3b78d0702";
|
2016-12-25 11:11:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
buildInputs = [ glibcLocales ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2016-12-25 16:17:33 +01:00
|
|
|
${python.interpreter} -m unittest discover
|
2016-12-25 11:11:45 +01: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 16:17:33 +01:00
|
|
|
}
|