summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorKevin Deldycke <kevin@deldycke.com>2026-04-22 08:29:15 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-06-28 21:16:35 +0100
commitb879a96996efbe85b5e4a8ae715e313451a319f5 (patch)
treed86e942948b1cf76304894159895729dffd5c5c0 /gnu
parentc0513d091c1582e1a4e95f19c8f981989418f72c (diff)
gnu: Add python-packageurl.
* gnu/packages/python-xyz.scm (python-packageurl): New variable. Relates-to: guix/guix!8047 Reviewed-by: bdunahu <bdunahu@operationnull.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-xyz.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1d17936e304..05a0c14a709 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2308,6 +2308,41 @@ numbers like forty-second.")
2308of Ordered Set.") 2308of Ordered Set.")
2309 (license license:expat))) 2309 (license license:expat)))
2310 2310
2311(define-public python-packageurl
2312 (package
2313 (name "python-packageurl")
2314 (version "0.17.6")
2315 (source
2316 (origin
2317 (method git-fetch)
2318 (uri (git-reference
2319 (url "https://github.com/package-url/packageurl-python")
2320 (commit (string-append "v" version))))
2321 (file-name (git-file-name name version))
2322 (sha256
2323 (base32 "03b6nf6jxzcbgkmqdp3bsl2lvzszqiaiqfwk88cnpvqbgq67lafb"))
2324 (modules '((guix build utils)))
2325 ;; Remove bundled virtualenv and license files used only for
2326 ;; development; not needed at build or runtime.
2327 (snippet '(delete-file-recursively "thirdparty"))))
2328 (build-system pyproject-build-system)
2329 (arguments
2330 (list #:test-flags
2331 ;; test_purl_spec.py reads JSON fixtures from the 'spec' git
2332 ;; submodule at import time; skip it when the submodule is absent.
2333 #~(list "--ignore=tests/test_purl_spec.py")))
2334 (native-inputs
2335 (list python-pytest
2336 python-setuptools))
2337 (home-page "https://www.packageurl.org")
2338 (synopsis "Package URL parser and builder")
2339 (description
2340 "This library parses and builds Package URLs (purls) as defined in the
2341purl specification. It provides a @code{PackageURL} class for creating,
2342parsing, and normalizing package URL strings across different package
2343management ecosystems.")
2344 (license license:expat)))
2345
2311(define-public python-pandocfilters 2346(define-public python-pandocfilters
2312 (package 2347 (package
2313 (name "python-pandocfilters") 2348 (name "python-pandocfilters")