1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pycryptodome 5, pycryptodomex 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "unicrypto"; 11 version = "0.0.10"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "skelsec"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-mZEnYVM5r4utiGwM7bp2SwaDjYsH8AR/Qm5UdPNke0w="; 21 }; 22 23 propagatedBuildInputs = [ 24 pycryptodome 25 pycryptodomex 26 ]; 27 28 # Module has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "unicrypto" 33 ]; 34 35 meta = with lib; { 36 description = "Unified interface for cryptographic libraries"; 37 homepage = "https://github.com/skelsec/unicrypto"; 38 changelog = "https://github.com/skelsec/unicrypto/releases/tag/${version}"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}