pycrypto for python26 and 27

This commit is contained in:
Florian Friesdorf
2012-12-03 07:59:32 +01:00
parent 6dc414d6ae
commit 3cf96816b0
3 changed files with 16 additions and 8 deletions

View File

@@ -1,7 +1,8 @@
{ stdenv, fetchurl, python, gmp }:
{ stdenv, fetchurl, python, buildPythonPackage, gmp }:
stdenv.mkDerivation rec {
buildPythonPackage rec {
name = "pycrypto-2.6";
namePrefix = "";
src = fetchurl {
url = "http://pypi.python.org/packages/source/p/pycrypto/${name}.tar.gz";
@@ -10,14 +11,16 @@ stdenv.mkDerivation rec {
buildInputs = [ python gmp ];
buildPhase = "true";
installPhase =
buildPhase =
''
python ./setup.py build_ext --library-dirs=${gmp}/lib
python ./setup.py install --prefix=$out
'';
# installPhase =
# ''
# python ./setup.py install --prefix=$out
# '';
meta = {
homepage = "http://www.pycrypto.org/";
description = "Python Cryptography Toolkit";