pycrypto for python26 and 27
This commit is contained in:
parent
6dc414d6ae
commit
3cf96816b0
@ -1,7 +1,8 @@
|
|||||||
{ stdenv, fetchurl, python, gmp }:
|
{ stdenv, fetchurl, python, buildPythonPackage, gmp }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
buildPythonPackage rec {
|
||||||
name = "pycrypto-2.6";
|
name = "pycrypto-2.6";
|
||||||
|
namePrefix = "";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pypi.python.org/packages/source/p/pycrypto/${name}.tar.gz";
|
url = "http://pypi.python.org/packages/source/p/pycrypto/${name}.tar.gz";
|
||||||
@ -10,14 +11,16 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ python gmp ];
|
buildInputs = [ python gmp ];
|
||||||
|
|
||||||
buildPhase = "true";
|
buildPhase =
|
||||||
|
|
||||||
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
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# installPhase =
|
||||||
|
# ''
|
||||||
|
# python ./setup.py install --prefix=$out
|
||||||
|
# '';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.pycrypto.org/";
|
homepage = "http://www.pycrypto.org/";
|
||||||
description = "Python Cryptography Toolkit";
|
description = "Python Cryptography Toolkit";
|
||||||
|
@ -5242,7 +5242,7 @@ let
|
|||||||
|
|
||||||
pycairo = callPackage ../development/python-modules/pycairo { };
|
pycairo = callPackage ../development/python-modules/pycairo { };
|
||||||
|
|
||||||
pycrypto = callPackage ../development/python-modules/pycrypto { };
|
pycrypto = python27Packages.pycrypto;
|
||||||
|
|
||||||
pycups = callPackage ../development/python-modules/pycups { };
|
pycups = callPackage ../development/python-modules/pycups { };
|
||||||
|
|
||||||
|
@ -44,6 +44,11 @@ let pythonPackages = python.modules // rec {
|
|||||||
inherit python buildPythonPackage;
|
inherit python buildPythonPackage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pycrypto = import ../development/python-modules/pycrypto {
|
||||||
|
inherit (pkgs) fetchurl stdenv gmp;
|
||||||
|
inherit python buildPythonPackage;
|
||||||
|
};
|
||||||
|
|
||||||
wrapPython = pkgs.makeSetupHook
|
wrapPython = pkgs.makeSetupHook
|
||||||
{ deps = pkgs.makeWrapper;
|
{ deps = pkgs.makeWrapper;
|
||||||
substitutions.libPrefix = python.libPrefix;
|
substitutions.libPrefix = python.libPrefix;
|
||||||
@ -1590,7 +1595,7 @@ let pythonPackages = python.modules // rec {
|
|||||||
sha256 = "1bjy4jn51c50mpq51jbwk0glzd8bxz83gxdfkr9p95dmrd17c7hh";
|
sha256 = "1bjy4jn51c50mpq51jbwk0glzd8bxz83gxdfkr9p95dmrd17c7hh";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgs.pycrypto ];
|
buildInputs = [ pycrypto ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.lag.net/paramiko/";
|
homepage = "http://www.lag.net/paramiko/";
|
||||||
|
Loading…
Reference in New Issue
Block a user