about summary refs log tree commit diff
path: root/pkgs/development/python2-packages/xmpppy/default.nix
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2010-04-17 18:28:25 +0000
committerMarc Weber <marco-oweber@gmx.de>2010-04-17 18:28:25 +0000
commit8c0b7e4ad2c23b3bb9c71c431520096d4361942f (patch)
tree966d85d67800a84f43d3ac06722c81619b623b62 /pkgs/development/python2-packages/xmpppy/default.nix
parent9e59164e5747235892f81ed6b6db67c63be89fe5 (diff)
downloadnixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.tar
nixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.tar.gz
nixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.tar.bz2
nixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.tar.lz
nixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.tar.xz
nixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.tar.zst
nixlib-8c0b7e4ad2c23b3bb9c71c431520096d4361942f.zip
- adding experimental python31 build
- cleanup python libraries:
 * moving all python libraries into a attr set into a directory
   so that expressions can be used for both: python 2.5 and 2.6 easily
 * disabling packages which don't build

svn path=/nixpkgs/trunk/; revision=21142
Diffstat (limited to 'pkgs/development/python2-packages/xmpppy/default.nix')
-rw-r--r--pkgs/development/python2-packages/xmpppy/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python2-packages/xmpppy/default.nix b/pkgs/development/python2-packages/xmpppy/default.nix
new file mode 100644
index 000000000000..3fc8058dfb2a
--- /dev/null
+++ b/pkgs/development/python2-packages/xmpppy/default.nix
@@ -0,0 +1,30 @@
+a :  
+let 
+  fetchurl = a.fetchurl;
+
+  version = a.lib.attrByPath ["version"] "0.5.0rc1" a; 
+  buildInputs = with a; [
+    python setuptools
+  ];
+in
+rec {
+  src = fetchurl {
+    url = "http://prdownloads.sourceforge.net/sourceforge/xmpppy/xmpppy-${version}.tar.gz";
+    sha256 = "16hbh8kwc5n4qw2rz1mrs8q17rh1zq9cdl05b1nc404n7idh56si";
+  };
+
+  inherit buildInputs;
+  configureFlags = [];
+
+  /* doConfigure should be removed if not needed */
+  phaseNames = ["mkDirs" "installPythonPackage"];
+  mkDirs = a.fullDepEntry(''
+    ensureDir $out/bin $out/lib $out/share $(toPythonPath $out)
+    export PYTHONPATH=$PYTHONPATH:$(toPythonPath $out)
+  '') ["defEnsureDir" "addInputs"];
+      
+  name = "xmpp.py-" + version;
+  meta = {
+    description = "XMPP python library";
+  };
+}