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,14 +1,13 @@
|
||||
{ stdenv, buildPythonPackage, fetchurl,
|
||||
{ stdenv, buildPythonPackage, fetchPypi,
|
||||
numpy, django_colorful, pillow, psycopg2,
|
||||
pyparsing, django, celery
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
version = "0.6";
|
||||
pname = "django-raster";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/d/django-raster/${name}.tar.gz";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "9a0f8e71ebeeeb5380c6ca68e027e9de335f43bc15e89dd22e7a470c4eb7aeb8";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user