mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
python.pkgs.pycryptopp: build with crypto++ >= 6.0
This commit is contained in:
parent
a157d96546
commit
ebd7466a0b
@ -1,6 +1,7 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, setuptoolsDarcs
|
, setuptoolsDarcs
|
||||||
, darcsver
|
, darcsver
|
||||||
@ -14,9 +15,19 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "08ad57a1a39b7ed23c173692281da0b8d49d98ad3dcc09f8cca6d901e142699f";
|
sha256 = "17v98bhh3nd6rkw0kk1xmnc9vm5ql0fji4in2wyd4zlvlfhmgb88";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "pycryptopp-cryptopp_6.patch";
|
||||||
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/api_change.patch?h=pycryptopp&id=55f2973d6ca5e9e70438f2eadb7fb575b1a5048d";
|
||||||
|
sha256 = "0lvl2d32d2vkb0v6d39p9whda5bdrmlsjd41zy0x0znqm53a9i99";
|
||||||
|
stripLen = 1;
|
||||||
|
extraPrefix = "src/";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
# Prefer crypto++ library from the Nix store over the one that's included
|
# Prefer crypto++ library from the Nix store over the one that's included
|
||||||
# in the pycryptopp distribution.
|
# in the pycryptopp distribution.
|
||||||
preConfigure = "export PYCRYPTOPP_DISABLE_EMBEDDED_CRYPTOPP=1";
|
preConfigure = "export PYCRYPTOPP_DISABLE_EMBEDDED_CRYPTOPP=1";
|
||||||
@ -24,7 +35,7 @@ buildPythonPackage rec {
|
|||||||
buildInputs = [ setuptoolsDarcs darcsver pkgs.cryptopp ];
|
buildInputs = [ setuptoolsDarcs darcsver pkgs.cryptopp ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://allmydata.org/trac/pycryptopp;
|
homepage = "https://tahoe-lafs.org/trac/pycryptopp";
|
||||||
description = "Python wrappers for the Crypto++ library";
|
description = "Python wrappers for the Crypto++ library";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
Reference in New Issue
Block a user