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`.
This commit is contained in:
Frederik Rietdijk
2018-06-23 15:27:58 +02:00
parent 8cfa9cc66c
commit ced21f5e1a
525 changed files with 387 additions and 879 deletions

View File

@@ -1,19 +1,19 @@
{ stdenv, fetchurl, openssl, makeWrapper, buildPythonApplication
, pytest, dnspython }:
buildPythonApplication rec {
name = "${pname}-${version}";
pname = "dkimpy";
let
majorversion = "0.6";
minorversion = "2";
in buildPythonApplication rec {
pname = "dkimpy";
version = "${majorversion}.${minorversion}";
src = fetchurl {
url = "https://launchpad.net/${pname}/${majorversion}/${majorversion}.${minorversion}/+download/${name}.tar.gz";
url = "https://launchpad.net/${pname}/${majorversion}/${majorversion}.${minorversion}/+download/${pname}-${version}.tar.gz";
sha256 = "1hagz8qk0v4ijfbcdq4z28bpgr2mkpr498z76i1vam2d50chmakl";
};
buildInputs = [ pytest ];
checkInputs = [ pytest ];
propagatedBuildInputs = [ openssl dnspython ];
patchPhase = ''