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