1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/development/python-modules/u-msgpack-python/default.nix
Frederik Rietdijk 6b999f3c42 Python: many package updates
Did not test all packages. Likely we'll have some breakage.
2017-05-27 14:25:08 +02:00

34 lines
723 B
Nix

{ buildPythonPackage
, lib
, fetchurl
, glibcLocales
, python
}:
let
pname = "u-msgpack-python";
version = "2.4.1";
in buildPythonPackage rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
sha256 = "2f31fc1b6dd8632c230ea7012470e40f77119f20999274dda6f1afa9c305e590";
};
LC_ALL="en_US.UTF-8";
buildInputs = [ glibcLocales ];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
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;
};
}