From 313f74cd73924b4b7dfc6f519cbc3f4db7c6c13b Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Wed, 17 Nov 2021 12:29:43 -0500 Subject: [PATCH] python3Packages.glean-parser: init at 4.3.1 Needed as a dependency of glean-sdk, which is needed for moz-phab. --- .../python-modules/glean-parser/default.nix | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/glean-parser/default.nix diff --git a/pkgs/development/python-modules/glean-parser/default.nix b/pkgs/development/python-modules/glean-parser/default.nix new file mode 100644 index 000000000000..4b631a45ded0 --- /dev/null +++ b/pkgs/development/python-modules/glean-parser/default.nix @@ -0,0 +1,49 @@ +{ lib +, pkgs +, python3Packages +, setuptools-scm +}: + +python3Packages.buildPythonPackage rec { + pname = "glean_parser"; + version = "4.3.1"; + + disabled = python3Packages.pythonOlder "3.6"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "sha256-wZSro1pX/50TlSfFMh71JlmXlJlONVutTDFL06tkw+s="; + }; + + propagatedBuildInputs = with python3Packages; [ + appdirs + click + diskcache + jinja2 + jsonschema + pytest + pytest-runner + pyyaml + yamllint + ]; + nativeBuildInputs = [ + setuptools-scm + ]; + + checkInputs = [ + python3Packages.pytestCheckHook + ]; + 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 = [ maintainers.kvark ]; + }; +}