Files
nixpkgs/pkgs/development/python-modules/pycrypto/default.nix
T

16 lines
405 B
Nix
Raw Normal View History

2006-12-13 22:29:40 +00:00
{stdenv, fetchurl, python, gmp}:
2006-12-13 20:30:09 +00:00
stdenv.mkDerivation {
name = "pycrypto-2.0.1";
src = fetchurl {
url = http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz;
md5 = "4d5674f3898a573691ffb335e8d749cd";
};
2006-12-13 22:29:40 +00:00
buildInputs = [python gmp];
2006-12-13 20:30:09 +00:00
buildPhase = "true";
2006-12-13 22:29:40 +00:00
installPhase = "
python ./setup.py build_ext --library-dirs=${gmp}/lib
python ./setup.py install --prefix=$out
";
2006-12-13 20:30:09 +00:00
}