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:
@@ -1,12 +1,11 @@
|
||||
{ lib, fetchurl, buildPythonPackage, intervaltree, pyflakes, requests, lxml }:
|
||||
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "xml2rfc";
|
||||
version = "2.9.8";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/x/${pname}/${name}.tar.gz";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1img6941wvwpk71q3vi9526bfjbh949k4lphrvdwlcf4igwy435m";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user