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 @@
|
||||
{ stdenv, fetchurl, python, buildPythonPackage, nose, future, coverage }:
|
||||
{ stdenv, fetchPypi, python, buildPythonPackage, nose, future, coverage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "PyZufall";
|
||||
version = "0.13.2";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1jffhi20m82fdf78bjhncbdxkfzcskrlipxlrqq9741xdvrn14b5";
|
||||
};
|
||||
|
||||
@@ -14,7 +13,7 @@ buildPythonPackage rec {
|
||||
# https://github.com/nose-devs/nose/issues/1037
|
||||
doCheck = false;
|
||||
|
||||
buildInputs = [ nose coverage ];
|
||||
checkInputs = [ nose coverage ];
|
||||
propagatedBuildInputs = [ future ];
|
||||
|
||||
checkPhase = ''
|
||||
|
||||
Reference in New Issue
Block a user