From 705205340bebdc79ec25c575c5fdc34397371570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 28 Jun 2009 13:44:21 +0000 Subject: [PATCH] buildPythonPackage: Allow callers to get rid of the `python-' name prefix. svn path=/nixpkgs/trunk/; revision=16079 --- pkgs/development/python-modules/generic/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index e97bf8d9adda..609cb5d6cb48 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -5,7 +5,8 @@ { python, setuptools, makeWrapper, lib }: -{ name, src, meta, patches ? [], doCheck ? true, ... } @ attrs: +{ name, namePrefix ? "python-", src, meta, patches ? [] +, doCheck ? true, ... } @ attrs: let # Return the list of recursively propagated build inputs of PKG. @@ -22,7 +23,7 @@ in python.stdenv.mkDerivation rec { inherit src meta patches doCheck; - name = "python-" + attrs.name; + name = namePrefix + attrs.name; buildInputs = [ python setuptools makeWrapper ] ++ (if attrs ? buildInputs then attrs.buildInputs else []);