1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/development/python-modules/twisted/default.nix
Peter Simons 05d7c131d1 Re-apply Eelco's "installCommand --> installPhase" patch.
svn path=/nixpkgs/trunk/; revision=12892
2008-09-19 10:07:57 +00:00

18 lines
588 B
Nix

{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
'';
}