Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage 2, lib 3, fetchurl 4, glibcLocales 5, python 6}: 7 8let 9 pname = "u-msgpack-python"; 10 version = "2.4.1"; 11in buildPythonPackage rec { 12 name = "${pname}-${version}"; 13 14 src = fetchurl { 15 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 16 sha256 = "2f31fc1b6dd8632c230ea7012470e40f77119f20999274dda6f1afa9c305e590"; 17 }; 18 19 LC_ALL="en_US.UTF-8"; 20 21 buildInputs = [ glibcLocales ]; 22 23 checkPhase = '' 24 ${python.interpreter} -m unittest discover 25 ''; 26 27 meta = { 28 description = "A portable, lightweight MessagePack serializer and deserializer written in pure Python"; 29 homepage = https://github.com/vsergeev/u-msgpack-python; 30 license = lib.licenses.mit; 31 }; 32 33}