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:
@@ -3,7 +3,6 @@
|
||||
# This derivation provides a Python module and should therefore be called via `python-packages.nix`.
|
||||
buildPythonPackage rec {
|
||||
pname = "pyside";
|
||||
name = "${pname}-${version}";
|
||||
version = "1.2.4";
|
||||
format = "other";
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# This derivation does not provide any Python module and should therefore be called via `all-packages.nix`.
|
||||
let
|
||||
pythonEnv = python2.withPackages(ps: with ps; [ sphinx ]);
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "pyside-generatorrunner";
|
||||
version = "0.6.16";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
# This derivation provides a Python module and should therefore be called via `python-packages.nix`.
|
||||
# Python 3.5 is not supported: https://github.com/PySide/Shiboken/issues/77
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "pyside-shiboken";
|
||||
version = "1.2.4";
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "pyside-tools";
|
||||
version = "0.2.15";
|
||||
name = "${pname}-${version}";
|
||||
format = "other";
|
||||
|
||||
src = fetchurl {
|
||||
|
||||
Reference in New Issue
Block a user