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,17 +1,16 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, zope_testrunner, six, chardet}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ghdiff";
|
||||
version = "0.4";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/g/ghdiff/${name}.tar.gz";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "17mdhi2sq9017nq8rkjhhc87djpi5z99xiil0xz17dyplr7nmkqk";
|
||||
};
|
||||
|
||||
buildInputs = [ zope_testrunner ];
|
||||
checkInputs = [ zope_testrunner ];
|
||||
propagatedBuildInputs = [ six chardet ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
||||
Reference in New Issue
Block a user