1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyasn1 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pyasn1-modules"; 11 version = "0.3.0"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "pyasn1"; 17 repo = pname; 18 rev = "refs/tags/v${version}"; 19 hash = "sha256-AAS1VuppCIxgswpLSHFAc6q9cyJBLpdDuU9D1KU13vg="; 20 }; 21 22 propagatedBuildInputs = [ 23 pyasn1 24 ]; 25 26 nativeCheckInputs = [ 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ 31 "pyasn1_modules" 32 ]; 33 34 meta = with lib; { 35 description = "A collection of ASN.1-based protocols modules"; 36 homepage = "https://github.com/pyasn1/pyasn1-modules"; 37 changelog = "https://github.com/pyasn1/pyasn1-modules/releases/tag/v${version}"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ ]; 40 }; 41}