From 49c68939db5ae9634f1400cfc7c78253939ff6df Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 19 Feb 2016 10:30:50 +0100 Subject: [PATCH] buildPythonApplication: function for building Python applications Currently, the only difference is that namePrefix is not set --- pkgs/top-level/all-packages.nix | 1 + pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 662905129e5..be40056e353 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9103,6 +9103,7 @@ let # python function with default python interpreter buildPythonPackage = pythonPackages.buildPythonPackage; + buildPythonApplication = pythonPackages.buildPythonApplication; # `nix-env -i python-nose` installs for 2.7, the default python. # Therefore we do not recurse into attributes here, in contrast to diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 42eac4716b2..0a7224fcd6c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19,6 +19,8 @@ let bootstrapped-pip = callPackage ../development/python-modules/bootstrapped-pip { }; }); + buildPythonApplication = args: buildPythonPackage ({namePrefix="";} // args ); + # Unique python version identifier pythonName = if isPy26 then "python26" else @@ -38,7 +40,7 @@ let in modules // { - inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage; + inherit python isPy26 isPy27 isPy33 isPy34 isPy35 isPyPy isPy3k pythonName buildPythonPackage buildPythonApplication; # helpers