1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 poetry-core, 8 9 # dependencies 10 cryptography, 11 pycryptodomex, 12 13 # tests 14 pytestCheckHook, 15}: 16 17buildPythonPackage rec { 18 pname = "pysnmpcrypto"; 19 version = "0.1.0"; 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "lextudio"; 24 repo = "pysnmpcrypto"; 25 tag = "v${version}"; 26 hash = "sha256-gNRD8mSWVVLXwJjb3nT7IKnjTdwTutFDnQybgZTY2b0="; 27 }; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 cryptography 33 pycryptodomex 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "pysnmpcrypto" ]; 39 40 meta = with lib; { 41 description = "Strong crypto support for Python SNMP library"; 42 homepage = "https://github.com/lextudio/pysnmpcrypto"; 43 changelog = "https://github.com/lextudio/pysnmpcrypto/blob/${version}/CHANGES.txt"; 44 license = licenses.bsd2; 45 maintainers = [ ]; 46 }; 47}