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,18 +1,18 @@
{ stdenv, buildPythonPackage, python, fetchurl
{ stdenv, buildPythonPackage, python, fetchPypi
, django_environ, mock, django, six
, pytest, pytestrunner, pytest-django, setuptools_scm
}:
buildPythonPackage rec {
pname = "django-guardian";
name = "${pname}-${version}";
version = "1.4.9";
src = fetchurl {
url = "mirror://pypi/d/django-guardian/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "c3c0ab257c9d94ce154b9ee32994e3cff8b350c384040705514e14a9fb7c8191";
};
buildInputs = [ pytest pytestrunner pytest-django django_environ mock setuptools_scm ];
checkInputs = [ pytest pytestrunner pytest-django django_environ mock ];
buildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ django six ];
checkPhase = ''