mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +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`.
24 lines
521 B
Nix
24 lines
521 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy33, pythonOlder,
|
|
asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioamqp";
|
|
version = "0.11.0";
|
|
|
|
meta = {
|
|
homepage = https://github.com/polyconseil/aioamqp;
|
|
description = "AMQP implementation using asyncio";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7f1eb9e0f1b7c7e21a3a6ca498c3daafdfc3e95b4a1a0633fd8d6ba2dfcab777";
|
|
};
|
|
|
|
buildInputs = lib.optionals isPy33 [ asyncio ];
|
|
|
|
disabled = pythonOlder "3.3";
|
|
}
|