at 25.11-pre 1.3 kB view raw
1{ 2 lib, 3 pythonOlder, 4 fetchFromGitHub, 5 buildPythonPackage, 6 setuptools, 7 pyasn1, 8 cryptography, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pgpy"; 14 version = "0.6.0"; 15 16 disabled = pythonOlder "3.6"; 17 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "SecurityInnovation"; 22 repo = "PGPy"; 23 rev = "v${version}"; 24 hash = "sha256-47YiHNxmjyCOYHHUV3Zyhs3Att9HZtCXYfbN34ooTxU="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 pyasn1 31 cryptography 32 ]; 33 34 patches = [ 35 # https://github.com/SecurityInnovation/PGPy/issues/462 36 ./pr-443.patch 37 ]; 38 39 postPatch = '' 40 # https://github.com/SecurityInnovation/PGPy/issues/472 41 substituteInPlace tests/test_10_exceptions.py \ 42 --replace-fail ", 512" ", 1024" # We need longer test key because pgp deprecated length=512 43 ''; 44 45 nativeCheckInputs = [ pytestCheckHook ]; 46 47 meta = { 48 homepage = "https://github.com/SecurityInnovation/PGPy"; 49 description = "Pretty Good Privacy for Python"; 50 longDescription = '' 51 PGPy is a Python library for implementing Pretty Good Privacy into Python 52 programs, conforming to the OpenPGP specification per RFC 4880. 53 ''; 54 license = lib.licenses.bsd3; 55 maintainers = with lib.maintainers; [ 56 eadwu 57 dotlambda 58 ]; 59 }; 60}