10 test-vectors = callPackage ./vectors.nix { };
12 buildPythonPackage rec {
13 pname = "pycryptodome";
15 format = "setuptools";
17 src = fetchFromGitHub {
19 repo = "pycryptodome";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-RPaBUj/BJCO+10maGDmugeEXxaIrlk2UHIvkbrQVM8c=";
25 substituteInPlace lib/Crypto/Math/_IntegerGMP.py \
26 --replace 'load_lib("gmp"' 'load_lib("${gmp}/lib/libgmp.so.10"'
29 nativeCheckInputs = [ test-vectors ];
31 pythonImportsCheck = [ "Crypto" ];
34 description = "Self-contained cryptographic library";
35 homepage = "https://github.com/Legrandin/pycryptodome";
36 changelog = "https://github.com/Legrandin/pycryptodome/blob/v${version}/Changelog.rst";
37 license = with licenses; [
41 maintainers = with maintainers; [ fab ];