python313Packages.pycryptodome: 3.21.0 -> 3.22.0
https://github.com/Legrandin/pycryptodome/blob/v3.22.0/Changelog.rst
This commit is contained in:
committed by
Robert Schütz
parent
2dec6976be
commit
49877bdbed
@@ -4,6 +4,7 @@
|
||||
callPackage,
|
||||
fetchFromGitHub,
|
||||
gmp,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -11,21 +12,23 @@ let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "pycryptodome";
|
||||
version = "3.21.0";
|
||||
format = "setuptools";
|
||||
version = "3.22.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Legrandin";
|
||||
repo = "pycryptodome";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-4GnjHDYJY1W3n6lUtGfk5KDMQfe5NoKbYn94TTXYCDY=";
|
||||
hash = "sha256-jc/o2HtpJ908NiBh9Ii5dQkQ9USHRPjRPtBHC+YqCmU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace lib/Crypto/Math/_IntegerGMP.py \
|
||||
--replace 'load_lib("gmp"' 'load_lib("${gmp}/lib/libgmp.so.10"'
|
||||
--replace-fail 'load_lib("gmp"' 'load_lib("${gmp}/lib/libgmp.so.10"'
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ test-vectors ];
|
||||
|
||||
pythonImportsCheck = [ "Crypto" ];
|
||||
|
||||
Reference in New Issue
Block a user