mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
32 lines
630 B
Nix
32 lines
630 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchPypi
|
|
, glibcLocales
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "u-msgpack-python";
|
|
version = "2.5.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7ff18ae3721fa75571f9329c08f7c0120416a6ae36194bd8674f65b3b78d0702";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|