{ lib , appdirs , buildPythonPackage , click , diskcache , fetchPypi , jinja2 , jsonschema , pytestCheckHook , pythonOlder , pyyaml , setuptools-scm , yamllint }: buildPythonPackage rec { pname = "glean-parser"; version = "5.1.0"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { pname = "glean_parser"; inherit version; hash = "sha256-8oMbaGsW5Lkw9OluNsXXe2IBNbjeoIb9vDjVOt+uHR0="; }; nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ appdirs click diskcache jinja2 jsonschema pyyaml yamllint ]; checkInputs = [ pytestCheckHook ]; postPatch = '' substituteInPlace setup.py \ --replace "pytest-runner" "" ''; disabledTests = [ # https://bugzilla.mozilla.org/show_bug.cgi?id=1741668 "test_validate_ping" ]; pythonImportsCheck = [ "glean_parser" ]; meta = with lib; { description = "Tools for parsing the metadata for Mozilla's glean telemetry SDK"; homepage = "https://github.com/mozilla/glean_parser"; license = licenses.mpl20; maintainers = with maintainers; [ kvark ]; }; }