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";

View File

@ -5242,7 +5242,7 @@ let
pycairo = callPackage ../development/python-modules/pycairo { };
pycrypto = callPackage ../development/python-modules/pycrypto { };
pycrypto = python27Packages.pycrypto;
pycups = callPackage ../development/python-modules/pycups { };

View File

@ -44,6 +44,11 @@ let pythonPackages = python.modules // rec {
inherit python buildPythonPackage;
};
pycrypto = import ../development/python-modules/pycrypto {
inherit (pkgs) fetchurl stdenv gmp;
inherit python buildPythonPackage;
};
wrapPython = pkgs.makeSetupHook
{ deps = pkgs.makeWrapper;
substitutions.libPrefix = python.libPrefix;
@ -1590,7 +1595,7 @@ let pythonPackages = python.modules // rec {
sha256 = "1bjy4jn51c50mpq51jbwk0glzd8bxz83gxdfkr9p95dmrd17c7hh";
};
buildInputs = [ pkgs.pycrypto ];
buildInputs = [ pycrypto ];
meta = {
homepage = "http://www.lag.net/paramiko/";