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