diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-04-12 23:27:55 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-04-12 23:27:55 +0000 |
commit | 9619e184cff6e779807a1eb555e23260ed636fb3 (patch) | |
tree | c4478f4571ce215365ce52c45abd1bb0ed19e8ad /pkgs/servers/xmpp | |
parent | 327d8f4862fe9372f92e4e37fb83f1540507841b (diff) |
Added xmpppy - python XMPP library and pyIRCt - python IRC transport
svn path=/nixpkgs/trunk/; revision=15005
Diffstat (limited to 'pkgs/servers/xmpp')
-rw-r--r-- | pkgs/servers/xmpp/pyIRCt/default.nix | 38 | ||||
-rw-r--r-- | pkgs/servers/xmpp/pyMAILt/default.nix | 40 |
2 files changed, 78 insertions, 0 deletions
diff --git a/pkgs/servers/xmpp/pyIRCt/default.nix b/pkgs/servers/xmpp/pyIRCt/default.nix new file mode 100644 index 0000000000000..b8a7379070cbc --- /dev/null +++ b/pkgs/servers/xmpp/pyIRCt/default.nix @@ -0,0 +1,38 @@ +a : +let + fetchurl = a.fetchurl; + + version = a.lib.getAttr ["version"] "0.4" a; + buildInputs = with a; [ + xmpppy pythonIRClib python makeWrapper + ]; +in +rec { + src = fetchurl { + url = "http://prdownloads.sourceforge.net/sourceforge/xmpppy/irc-transport-${version}.tar.gz"; + sha256 = "0gbc0dvj1p3088b6x315yjrlwnc5vvzp0var36wlf9z60ghvk8yb"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["deploy" (a.makeManyWrappers "$out/share/${name}/irc.py" a.pythonWrapperArguments)]; + deploy = a.FullDepEntry ('' + ensureDir $out/bin $out/share/${name} + sed -e 's@/usr/bin/@${a.python}/bin/@' -i irc.py + sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.pyIRCt.xml"]' -i config.py + sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.python-irc-transport.xml"]' -i config.py + sed -e '/configFiles/iimport os' -i config.py + cp * $out/share/$name + echo "#! /bin/sh" > $out/bin/pyIRCt + echo "cd $out/share/${name}" >> $out/bin/pyIRCt + echo "./irc.py \"$@\"" >> $out/bin/pyIRCt + chmod a+rx $out/bin/pyIRCt $out/share/${name}/irc.py + '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; + + name = "pyIRCt-" + version; + meta = { + description = "IRC transport module for XMPP"; + }; +} diff --git a/pkgs/servers/xmpp/pyMAILt/default.nix b/pkgs/servers/xmpp/pyMAILt/default.nix new file mode 100644 index 0000000000000..5a2c4c5484c8b --- /dev/null +++ b/pkgs/servers/xmpp/pyMAILt/default.nix @@ -0,0 +1,40 @@ +a : +let + fetchurl = a.fetchurl; + + buildInputs = with a; [ + xmpppy python makeWrapper + ]; +in +rec { + src = a.fetchcvs { + cvsRoot = ":pserver:anonymous@xmpppy.cvs.sourceforge.net:/cvsroot/xmpppy"; + module = "xmpppy/mail-transport"; + date = "2009-01-01"; + sha256 = "15301252e52b4ccb2156baefed8982a2a0cce3ae8eae3caf3cc28dfa615c8d6e"; + }; + + inherit buildInputs; + configureFlags = []; + + /* doConfigure should be removed if not needed */ + phaseNames = ["deploy" (a.makeManyWrappers "$out/share/${name}/mail.py" a.pythonWrapperArguments)]; + deploy = a.FullDepEntry ('' + cd mail-transport + ensureDir $out/bin $out/share/${name} + sed -e 's@/usr/bin/@${a.python}/bin/@' -i mail.py + sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.pyMAILt.xml"]' -i config.py + sed -e '/configFiles/aconfigFiles += [os.getenv("HOME")+"/.python-mail-transport.xml"]' -i config.py + sed -e '/configFiles/iimport os' -i config.py + cp * $out/share/$name + echo "#! /bin/sh" > $out/bin/pyMAILt + echo "cd $out/share/${name}" >> $out/bin/pyMAILt + echo "./mail.py \"$@\"" >> $out/bin/pyMAILt + chmod a+rx $out/bin/pyMAILt $out/share/${name}/mail.py + '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; + + name = "pyMAILt"; + meta = { + description = "Email transport module for XMPP"; + }; +} |