* pycrypto updated to 2.1.0.

svn path=/nixpkgs/trunk/; revision=21910
This commit is contained in:
Eelco Dolstra 2010-05-20 10:41:10 +00:00
parent 0fa66dac1c
commit 9db799acd5

View File

@ -1,15 +1,26 @@
{ stdenv, fetchurl, python, gmp }: { stdenv, fetchurl, python, gmp }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "pycrypto-2.0.1"; name = "pycrypto-2.1.0";
src = fetchurl { src = fetchurl {
url = http://www.amk.ca/files/python/crypto/pycrypto-2.0.1.tar.gz; url = "http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/${name}.tar.gz";
md5 = "4d5674f3898a573691ffb335e8d749cd"; sha256 = "18nq49l8wplg54hz9h26n61rq49vjzmy5xzlkm1g0j82x8i1qgi5";
}; };
buildInputs = [ python gmp ]; buildInputs = [ python gmp ];
buildPhase = "true"; buildPhase = "true";
installPhase = "
installPhase =
''
python ./setup.py build_ext --library-dirs=${gmp}/lib python ./setup.py build_ext --library-dirs=${gmp}/lib
python ./setup.py install --prefix=$out python ./setup.py install --prefix=$out
"; '';
meta = {
homepage = http://www.dlitz.net/software/pycrypto/;
description = "Python Cryptography Toolkit";
platforms = stdenv.lib.platforms.linux;
};
} }