xmpppy: reimplement using buildPythonPackage

This commit is contained in:
Joachim Fasting 2015-06-16 20:17:51 +02:00
parent 809b3803b9
commit 502d21a835
2 changed files with 9 additions and 17 deletions

View File

@ -1,29 +1,21 @@
a @ {python, setuptools, ... } :
let
fetchurl = a.fetchurl;
{ buildPythonPackage, fetchurl, setuptools }:
buildPythonPackage rec {
name = "xmpp.py-${version}";
version = "0.5.0rc1";
version = a.lib.attrByPath ["version"] "0.5.0rc1" a;
buildInputs = with a; [
python setuptools
];
in
rec {
src = fetchurl {
url = "mirror://sourceforge/xmpppy/xmpppy-${version}.tar.gz";
sha256 = "16hbh8kwc5n4qw2rz1mrs8q17rh1zq9cdl05b1nc404n7idh56si";
};
inherit buildInputs;
configureFlags = [];
buildInputs = [ setuptools ];
/* doConfigure should be removed if not needed */
phaseNames = ["mkDirs" "installPythonPackage"];
mkDirs = a.fullDepEntry(''
preInstall = ''
mkdir -p $out/bin $out/lib $out/share $(toPythonPath $out)
export PYTHONPATH=$PYTHONPATH:$(toPythonPath $out)
'') ["defEnsureDir" "addInputs"];
'';
name = "xmpp.py-" + version;
meta = {
description = "XMPP python library";
};

View File

@ -3611,7 +3611,7 @@ let
xmltv = callPackage ../tools/misc/xmltv { };
xmpppy = builderDefsPackage (callPackage ../development/python-modules/xmpppy) {};
xmpppy = callPackage ../development/python-modules/xmpppy { };
xorriso = callPackage ../tools/cd-dvd/xorriso { };