blob: bfb8483042dd9ab18bb8860ff95c9d60e5250b30 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ stdenv, fetchurl, python, gmp }:
stdenv.mkDerivation rec {
name = "pycrypto-2.1.0";
src = fetchurl {
url = "http://www.pycrypto.org/files/${name}.tar.gz";
sha256 = "18nq49l8wplg54hz9h26n61rq49vjzmy5xzlkm1g0j82x8i1qgi5";
};
buildInputs = [ python gmp ];
buildPhase = "true";
installPhase =
''
python ./setup.py build_ext --library-dirs=${gmp}/lib
python ./setup.py install --prefix=$out
'';
meta = {
homepage = "http://www.pycrypto.org/";
description = "Python Cryptography Toolkit";
platforms = stdenv.lib.platforms.linux;
};
}
|