Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, poetry-core 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "pysnmp-pyasn1"; 11 version = "1.1.3"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "pysnmp"; 18 repo = "pyasn1"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-W74aWMqGlat+aZfhbP1cTKRz7SomHdGwfK5yJwxgyqI="; 21 }; 22 23 nativeBuildInputs = [ 24 poetry-core 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "pyasn1" 33 ]; 34 35 meta = with lib; { 36 description = "Python ASN.1 encoder and decoder"; 37 homepage = "https://github.com/pysnmp/pyasn1"; 38 changelog = "https://github.com/pysnmp/pyasn1/releases/tag/v${version}"; 39 license = licenses.bsd2; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}