1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools-scm, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pygmars"; 12 version = "0.9.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.9"; 16 17 src = fetchFromGitHub { 18 owner = "nexB"; 19 repo = "pygmars"; 20 tag = "v${version}"; 21 hash = "sha256-OhmTD83p/4tCMoCXy35/0fy8Tw1usn27dJyzpOeGlkU="; 22 }; 23 24 dontConfigure = true; 25 26 build-system = [ setuptools-scm ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "pygmars" ]; 31 32 meta = with lib; { 33 description = "Python lexing and parsing library"; 34 homepage = "https://github.com/nexB/pygmars"; 35 changelog = "https://github.com/aboutcode-org/pygmars/blob/v${version}/CHANGELOG.rst"; 36 license = with licenses; [ asl20 ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}