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:
@@ -4,11 +4,10 @@
|
||||
if isPyPy then throw "dbus-python not supported for interpreter ${python.executable}" else buildPythonPackage rec {
|
||||
pname = "dbus-python";
|
||||
version = "1.2.4";
|
||||
name = "${pname}-${version}";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://dbus.freedesktop.org/releases/dbus-python/${name}.tar.gz";
|
||||
url = "http://dbus.freedesktop.org/releases/dbus-python/${pname}-${version}.tar.gz";
|
||||
sha256 = "1k7rnaqrk7mdkg0k6n2jn3d1mxsl7s3i07g5a8va5yvl3y3xdwg2";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user