{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, setuptools-scm, pythonOlder, }: buildPythonPackage rec { pname = "pygmars"; version = "0.9.0"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "nexB"; repo = "pygmars"; rev = "refs/tags/v${version}"; hash = "sha256-OhmTD83p/4tCMoCXy35/0fy8Tw1usn27dJyzpOeGlkU="; }; dontConfigure = true; build-system = [ setuptools-scm ]; nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "pygmars" ]; meta = with lib; { description = "Python lexing and parsing library"; homepage = "https://github.com/nexB/pygmars"; changelog = "https://github.com/aboutcode-org/pygmars/blob/v${version}/CHANGELOG.rst"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; }