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,12 +1,12 @@
{ stdenv, fetchurl, python, exiv2, scons, boost }:
{ stdenv, buildPythonPackage, fetchurl, python, exiv2, scons, boost }:
stdenv.mkDerivation rec {
buildPythonPackage rec {
pname = "pyexiv2";
version = "0.3.2";
name = "${pname}-${version}";
format = "other";
src = fetchurl {
url = "http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${name}.tar.bz2";
url = "http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${pname}-${version}.tar.bz2";
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
};
@@ -23,5 +23,7 @@ stdenv.mkDerivation rec {
meta = {
platforms = stdenv.lib.platforms.linux;
# Likely needs an older boost which does not have `boost_pythonXY` but `boost_python`.
broken = true; # 2018-06-23
};
}