buildPythonPackage: Allow callers to get rid of the `python-' name prefix.
svn path=/nixpkgs/trunk/; revision=16079
This commit is contained in:
parent
482f7769e7
commit
705205340b
@ -5,7 +5,8 @@
|
|||||||
|
|
||||||
{ python, setuptools, makeWrapper, lib }:
|
{ python, setuptools, makeWrapper, lib }:
|
||||||
|
|
||||||
{ name, src, meta, patches ? [], doCheck ? true, ... } @ attrs:
|
{ name, namePrefix ? "python-", src, meta, patches ? []
|
||||||
|
, doCheck ? true, ... } @ attrs:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Return the list of recursively propagated build inputs of PKG.
|
# Return the list of recursively propagated build inputs of PKG.
|
||||||
@ -22,7 +23,7 @@ in
|
|||||||
python.stdenv.mkDerivation rec {
|
python.stdenv.mkDerivation rec {
|
||||||
inherit src meta patches doCheck;
|
inherit src meta patches doCheck;
|
||||||
|
|
||||||
name = "python-" + attrs.name;
|
name = namePrefix + attrs.name;
|
||||||
|
|
||||||
buildInputs = [ python setuptools makeWrapper ] ++
|
buildInputs = [ python setuptools makeWrapper ] ++
|
||||||
(if attrs ? buildInputs then attrs.buildInputs else []);
|
(if attrs ? buildInputs then attrs.buildInputs else []);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user