Move Twisted to `buildPythonPackage'.

svn path=/nixpkgs/trunk/; revision=15709
This commit is contained in:
Ludovic Courtès 2009-05-24 21:25:29 +00:00
parent 4fc80e9497
commit 5b7525c631
2 changed files with 24 additions and 17 deletions

View file

@ -1,17 +0,0 @@
{stdenv, fetchurl, python, ZopeInterface, makeWrapper}:
stdenv.mkDerivation {
name = "twisted-8.1.0";
src = fetchurl {
url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
};
buildInputs = [python];
propagatedBuildInputs = [ZopeInterface makeWrapper];
installPhase = ''
python ./setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1
for n in $out/bin/*; do wrapProgram $n --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH:\$PYTHONPATH"; done
'';
}

View file

@ -67,6 +67,30 @@ rec {
};
});
twisted = buildPythonPackage {
name = "twisted-8.1.0";
src = fetchurl {
url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
};
propagatedBuildInputs = [ pkgs.ZopeInterface ];
meta = {
homepage = http://twistedmatrix.com/;
description = "Twisted, an event-driven networking engine written in Python";
longDescription = ''
Twisted is an event-driven networking engine written in Python
and licensed under the MIT license.
'';
license = "MIT";
};
};
foolscap = buildPythonPackage (rec {
name = "foolscap-0.3.2";