at v192 763 B view raw
1a @ {python, setuptools, ... } : 2let 3 fetchurl = a.fetchurl; 4 5 version = a.lib.attrByPath ["version"] "0.5.0rc1" a; 6 buildInputs = with a; [ 7 python setuptools 8 ]; 9in 10rec { 11 src = fetchurl { 12 url = "mirror://sourceforge/xmpppy/xmpppy-${version}.tar.gz"; 13 sha256 = "16hbh8kwc5n4qw2rz1mrs8q17rh1zq9cdl05b1nc404n7idh56si"; 14 }; 15 16 inherit buildInputs; 17 configureFlags = []; 18 19 /* doConfigure should be removed if not needed */ 20 phaseNames = ["mkDirs" "installPythonPackage"]; 21 mkDirs = a.fullDepEntry('' 22 mkdir -p $out/bin $out/lib $out/share $(toPythonPath $out) 23 export PYTHONPATH=$PYTHONPATH:$(toPythonPath $out) 24 '') ["defEnsureDir" "addInputs"]; 25 26 name = "xmpp.py-" + version; 27 meta = { 28 description = "XMPP python library"; 29 }; 30}