Subject: [PATCH] gnu: Add python-glean-parser.

From: Adam Faiz <[email-masked]>
Date: Fri, 10 Mar 2023 00:50:58 +0800

From 545997a268891952bc87934f67c721224c9df7a8 Mon Sep 17 00:00:00 2001
Message-Id: <5[email-masked]>
In-Reply-To: <f[email-masked]>
References: <f[email-masked]>
From: AwesomeAdam54321 <[email-masked]>
Date: Thu, 9 Mar 2023 22:53:13 +0800
Subject: [PATCH] gnu: Add python-glean-parser.

* gnu/packages/python-xyz.scm (python-glean-parser): New variable.
---
  gnu/packages/python-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
  1 file changed, 37 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 37cd6fb0af..b4173da3fd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -22996,6 +22996,43 @@ (define-public python-globber
  path components.")
      (license license:asl2.0)))
  
+(define-public python-glean-parser
+  (package
+    (name "python-glean-parser")
+    (version "7.0.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "glean_parser" version))
+              (sha256
+               (base32
+                "1mfclj0vx65pr2wyk675cp66c1yi5vwry8p1aipm1p60dzfn12f4"))
+              (modules '((guix build utils)))
+              (snippet
+               #~(begin
+                   (substitute* "setup.py"
+                     ((".*setuptools-scm>=7.*") ""))))))
+    (build-system python-build-system)
+    (native-inputs
+     (list python-pytest
+           python-pytest-runner))
+    (propagated-inputs
+     (list python-appdirs
+           python-click
+           python-diskcache
+           python-iso8601
+           python-jinja2
+           python-jsonschema
+           python-markupsafe
+           python-pyyaml
+           python-yamllint))
+    (home-page "https://github.com/mozilla/glean_parser")
+    (synopsis "Parser tools for Mozilla's Glean telemetry")
+    (description
+     "Glean Parser contains various utilities for handling metrics.yaml
+and pings.yaml for the Glean SDKs.  This includes producing generated code
+for various integrations, linting and coverage testing.")
+    (license license:mpl2.0)))
+
  (define-public python-git-hammer
    (package
      (name "python-git-hammer")
-- 
2.39.2