From patchwork Mon Jun 5 16:25:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 50703 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C832927BBEA; Mon, 5 Jun 2023 17:26:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5987727BBE2 for ; Mon, 5 Jun 2023 17:26:32 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6D22-0001ap-1P; Mon, 05 Jun 2023 12:26:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q6D20-0001Z0-Ai for guix-patches@gnu.org; Mon, 05 Jun 2023 12:26:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q6D20-0001eT-2Y for guix-patches@gnu.org; Mon, 05 Jun 2023 12:26:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6D1z-0004So-UD; Mon, 05 Jun 2023 12:26:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55474] [PATCH v4 14/19] gnu: Add python-django-permissionedforms. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, guix-patches@gnu.org Resent-Date: Mon, 05 Jun 2023 16:26:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55474 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55474@debbugs.gnu.org Cc: ngraves@ngraves.fr, lars@6xq.net X-Debbugs-Original-Xcc: lars@6xq.net Received: via spool by 55474-submit@debbugs.gnu.org id=B55474.168598234316968 (code B ref 55474); Mon, 05 Jun 2023 16:26:07 +0000 Received: (at 55474) by debbugs.gnu.org; 5 Jun 2023 16:25:43 +0000 Received: from localhost ([127.0.0.1]:50192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6D1a-0004PV-VV for submit@debbugs.gnu.org; Mon, 05 Jun 2023 12:25:43 -0400 Received: from 7.mo560.mail-out.ovh.net ([188.165.48.182]:54421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6D1X-0004Ol-P7 for 55474@debbugs.gnu.org; Mon, 05 Jun 2023 12:25:41 -0400 Received: from director7.ghost.mail-out.ovh.net (unknown [10.109.138.246]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 0D7D326F40 for <55474@debbugs.gnu.org>; Mon, 5 Jun 2023 16:25:37 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-r2blc (unknown [10.110.115.95]) by director7.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 73F331FEA3; Mon, 5 Jun 2023 16:25:37 +0000 (UTC) Received: from ngraves.fr ([37.59.142.110]) by ghost-submission-6684bf9d7b-r2blc with ESMTPSA id 0o9ZGIEMfmTKAgAA+qFItA (envelope-from ); Mon, 05 Jun 2023 16:25:37 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-110S00449d37308-87bd-46b2-9193-e9bedc84ea4f, 24BD45A8C995C08D5395E1BF3FBF1E19C8C2E420) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 Date: Mon, 5 Jun 2023 18:25:09 +0200 Message-Id: <154d57f2669eda5145ab13ba4e37f08fe4020b75.1685982295.git.ngraves@ngraves.fr> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 X-Ovh-Tracer-Id: 901001404182160098 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelledguddtudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdffheegkefhkefggfelheffteeigfegiedtudetkeffhfekheevjeefjeeltdeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegtddrudegvddpfeejrdehledrudegvddruddutdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheehgeejgeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeitddpmhhouggvpehsmhhtphhouhht X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/django.scm (python-django-permissionedforms): New variable. --- gnu/packages/django.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index 54aabcd0a3..c379b8cca9 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -777,6 +777,40 @@ (define-public python-dj-database-url conn_max_age argument to easily enable Django’s connection pool.") (license license:bsd-2))) +(define-public python-django-permissionedforms + (package + (name "python-django-permissionedforms") + (version "0.1") + ;; tests are not packaged in pypi + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wagtail/django-permissionedforms") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0dscl238yi4xyd4nz2cxr5kikyalqj5drmk935llal3rd0dcy30d")))) + (build-system pyproject-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? inputs #:allow-other-keys) + (if tests? + (invoke "python" "runtests.py") + (format #t "test suite not run~%"))))))) + (propagated-inputs (list python-django)) + (native-inputs (list python-django-modelcluster)) + (home-page "https://github.com/wagtail/django-permissionedforms") + (synopsis + "Create forms that vary according to user permissions in Django") + (description + "This package provides a Django extension for creating forms that vary +according to user permissions.") + (license license:bsd-3))) + (define-public python-django-picklefield (package (name "python-django-picklefield")