2008-09-19 12:07:36 +02:00
|
|
|
{stdenv, fetchurl, python, ZopeInterface, makeWrapper}:
|
2006-12-13 19:04:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-09-01 17:11:09 +02:00
|
|
|
name = "twisted-8.1.0";
|
2006-12-13 19:04:03 +01:00
|
|
|
src = fetchurl {
|
2008-09-01 17:11:09 +02:00
|
|
|
url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
|
|
|
|
sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
|
2006-12-13 19:04:03 +01:00
|
|
|
};
|
2006-12-13 21:30:09 +01:00
|
|
|
buildInputs = [python];
|
2008-09-19 12:07:57 +02:00
|
|
|
|
2008-09-19 12:07:36 +02:00
|
|
|
propagatedBuildInputs = [ZopeInterface makeWrapper];
|
2008-09-19 12:07:57 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
2008-09-19 12:07:36 +02:00
|
|
|
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
|
|
|
|
'';
|
2006-12-13 19:04:03 +01:00
|
|
|
}
|