1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, isPyPy
6, setuptoolsDarcs
7, darcsver
8, pkgs
9}:
10
11buildPythonPackage rec {
12 pname = "pycryptopp";
13 version = "0.7.1.869544967005693312591928092448767568728501330214";
14 disabled = isPy3k || isPyPy; # see https://bitbucket.org/pypy/pypy/issue/1190/
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "08ad57a1a39b7ed23c173692281da0b8d49d98ad3dcc09f8cca6d901e142699f";
19 };
20
21 # Prefer crypto++ library from the Nix store over the one that's included
22 # in the pycryptopp distribution.
23 preConfigure = "export PYCRYPTOPP_DISABLE_EMBEDDED_CRYPTOPP=1";
24
25 buildInputs = [ setuptoolsDarcs darcsver pkgs.cryptopp ];
26
27 meta = with stdenv.lib; {
28 homepage = http://allmydata.org/trac/pycryptopp;
29 description = "Python wrappers for the Crypto++ library";
30 license = licenses.gpl2Plus;
31 platforms = platforms.linux;
32 };
33
34}