bazaar: use buildPythonApplication

This commit is contained in:
Frederik Rietdijk 2016-09-26 14:15:19 +02:00
parent fe98e664fd
commit 9c5610d759

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, pythonPackages }: { stdenv, fetchurl, pythonPackages }:
stdenv.mkDerivation rec { pythonPackages.buildPythonApplication rec {
version = "2.7"; version = "2.7";
release = ".0"; release = ".0";
name = "bazaar-${version}${release}"; name = "bazaar-${version}${release}";
@ -10,10 +10,10 @@ stdenv.mkDerivation rec {
sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"; sha256 = "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d";
}; };
buildInputs = [ pythonPackages.python pythonPackages.wrapPython ];
# Readline support is needed by bzrtools. # Readline support is needed by bzrtools.
pythonPath = [ pythonPackages.readline ]; propagatedBuildInputs = [ pythonPackages.python.modules.readline ];
doCheck = false;
# Bazaar can't find the certificates alone # Bazaar can't find the certificates alone
patches = [ ./add_certificates.patch ]; patches = [ ./add_certificates.patch ];
@ -22,11 +22,6 @@ stdenv.mkDerivation rec {
--subst-var-by certPath /etc/ssl/certs/ca-certificates.crt --subst-var-by certPath /etc/ssl/certs/ca-certificates.crt
''; '';
installPhase = ''
python setup.py install --prefix=$out
wrapPythonPrograms
'';
meta = { meta = {
homepage = http://bazaar-vcs.org/; homepage = http://bazaar-vcs.org/;
description = "A distributed version control system that Just Works"; description = "A distributed version control system that Just Works";