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