nixpkgs/pkgs/development/python-modules/transaction/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

26 lines
495 B
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, zope_interface
, mock
}:
buildPythonPackage rec {
pname = "transaction";
version = "2.2.1";
src = fetchPypi {
inherit pname version;
sha256 = "f2242070e437e5d555ea3df809cb517860513254c828f33847df1c5e4b776c7a";
};
propagatedBuildInputs = [ zope_interface mock ];
meta = with stdenv.lib; {
description = "Transaction management";
homepage = https://pypi.python.org/pypi/transaction;
license = licenses.zpl20;
};
}