rekado pushed a commit to branch master
in repository guix.

commit 7bcc581fdaa20ba2e143df23d69298a5b25b4d61
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Tue Jan 14 14:29:28 2025 +0100

    gnu: Add python-django-q-rollbar.
    
    * gnu/packages/django.scm (python-django-q-rollbar): New variable.
    
    Change-Id: I6a47fa6a65abfe6fec63f7c860ce0841cccaa462
---
 gnu/packages/django.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 0f13611097..a2cc3a173c 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1184,6 +1184,38 @@ Django Q, dependencies updates, docs updates and several 
bug fixes.")
     (description "This package provides a Sentry support plugin for Django Q.")
     (license license:expat)))
 
+(define-public python-django-q-rollbar
+  (package
+    (name "python-django-q-rollbar")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "django-q-rollbar" version))
+       (sha256
+        (base32 "0jzf84h4vr335ppp7x4d3pm04dlz8b75w0bswyynqzjhjji6vpm4"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'use-poetry-core
+            (lambda _
+              ;; Patch to use the core poetry API.
+              (substitute* "pyproject.toml"
+                (("poetry.masonry.api") "poetry.core.masonry.api"))))
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("rollbar = .*") "rollbar = \"^1\"")))))))
+    (propagated-inputs (list python-rollbar python-requests))
+    (native-inputs (list python-poetry-core python-setuptools))
+    (home-page "https://django-q.readthedocs.org";)
+    (synopsis "Rollbar support plugin for Django Q")
+    (description
+     "This package provides a Rollbar support plugin for Django Q.")
+    (license license:expat)))
+
 (define-public python-django-sortedm2m
   (package
     (name "python-django-sortedm2m")

Reply via email to