From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EG7pLv1iPWSeqQAASxT56A (envelope-from ) for ; Mon, 17 Apr 2023 17:17:17 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4B65Lv1iPWRJVAEAauVa8A (envelope-from ) for ; Mon, 17 Apr 2023 17:17:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx2.migadu.com (Postfix) with ESMTPS id 211FD6530 for ; Mon, 17 Apr 2023 17:17:17 +0200 (CEST) Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681744637; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=cLBlq02VgAP4yrtIAC0gijPizRjxqI1faEQAelxnv6g=; b=q3CdFj6ZwklJ1tVxpx+lLQGWhdj2kq3LOHJR4ziqAH9DX1cUchcVjGzy65loTBz5GUggVQ HR3CxedpcqVd2MQ01k1BY8i1Pi0foD+Inj5EalVlcuRb5wGBAzZ78MJvUCiLKTVwJ5XUai jEKE7YZYSjYIgMh/JPL6AGMEORoN71WoS9QjP032yEVI4kbLQlL2nuo4fLI3teyNGH+ru0 xVH7kCDN+NSaTYAoZCqy6CYht8l0VFl8wm1Sdm8Y8K3HXk9hPSYIWifUiBQ6jQ/kKBuoBa UGyfT2U51yFrMhJhGaOyQkgqa0EFrH7AxhJhQagZlJv8aJyssEHBI9bJZdPHXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681744637; a=rsa-sha256; cv=none; b=rRKvamwAXY6+Sv3NY3u38FkEB27Z/E4ifS/RppOwSoJRq6Ed5u9lJS5GYxh+hcoi2lfEdD ISpSozfj1yHiFEhMOEuSLCYePixxL96yZ2NEeCCWM8AH4fWWBr5/2EJZKQn2GmmdH68ZTI H+mO3EduXt0q2+h4VtHd92ltI7tJ+vNjygTdFluklgQlS8AuwFI1+kSS/2E5GdPzT5Qwr+ n5eyrBdAinlM3ieXPXyH5U0JbBnCUy42EhX5/GKARXo2/FLzPvT+ClltaWcBXU86kuguV/ LE4/jVX/YXeLjqXTB/PYjxAbtKuF1IgXZSj5vWA4Qn8GkxNLMTJM99F+017EyA== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poQGJ-00062c-61; Mon, 17 Apr 2023 10:55:23 -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 1poQG0-0005mO-NY for guix-patches@gnu.org; Mon, 17 Apr 2023 10:55:04 -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 1poQFz-0006Li-UE for guix-patches@gnu.org; Mon, 17 Apr 2023 10:55:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1poQFz-0000K2-MD for guix-patches@gnu.org; Mon, 17 Apr 2023 10:55:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55474] [PATCH v3 17/17] gnu: Add python-wagtail-localize. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Apr 2023 14:55:03 +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: lars@6xq.net, ngraves@ngraves.fr Received: via spool by 55474-submit@debbugs.gnu.org id=B55474.1681743259974 (code B ref 55474); Mon, 17 Apr 2023 14:55:03 +0000 Received: (at 55474) by debbugs.gnu.org; 17 Apr 2023 14:54:19 +0000 Received: from localhost ([127.0.0.1]:55771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1poQFH-0000FZ-0K for submit@debbugs.gnu.org; Mon, 17 Apr 2023 10:54:19 -0400 Received: from 19.mo581.mail-out.ovh.net ([178.33.251.118]:44341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1poQF5-0000E5-G0 for 55474@debbugs.gnu.org; Mon, 17 Apr 2023 10:54:08 -0400 Received: from director8.ghost.mail-out.ovh.net (unknown [10.109.138.120]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 3EFC1231FE for <55474@debbugs.gnu.org>; Mon, 17 Apr 2023 14:54:06 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-k8fdt (unknown [10.110.208.152]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id E18FB1FDBD; Mon, 17 Apr 2023 14:54:05 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-6684bf9d7b-k8fdt with ESMTPSA id Vo9WNI1dPWT0BgEAJ8Ve+A (envelope-from ); Mon, 17 Apr 2023 14:54:05 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Mon, 17 Apr 2023 16:53:37 +0200 Message-Id: <20230417145337.12403-17-ngraves@ngraves.fr> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417145337.12403-1-ngraves@ngraves.fr> References: <20230417145337.12403-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6741325695759737382 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeliedgkedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdeiffduvdfgffefleekiedthefftdfggeetudffgffhjedvheevleeiieevledunecuffhomhgrihhnpehgihhthhhusgdrtghomhdpfigrghhtrghilhdqlhhotggrlhhiiigvrdhorhhgnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrdeljeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheehgeejgeesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekuddpmhhouggvpehsmhhtphhouhht 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 From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.51 X-Spam-Score: -4.51 X-Migadu-Queue-Id: 211FD6530 X-Migadu-Scanner: scn0.migadu.com X-TUID: d/NXINZmu/F6 * gnu/packages/django.scm (python-wagtail-localize): New variable. --- gnu/packages/django.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm index f546330c79..6c5818c138 100644 --- a/gnu/packages/django.scm +++ b/gnu/packages/django.scm @@ -34,6 +34,7 @@ (define-module (gnu packages django) #:use-module (guix git-download) #:use-module (guix gexp) #:use-module (guix build-system python) + #:use-module (guix build-system pyproject) #:use-module (guix deprecation) #:use-module (gnu packages) #:use-module (gnu packages base) @@ -1667,3 +1668,43 @@ (define-public python-wagtail (description "This package provides a Content Management System based on Django.") (license license:bsd-3))) + +(define-public python-wagtail-localize + (package + (name "python-wagtail-localize") + (version "1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wagtail/wagtail-localize") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vxd4852wc0qpindxi97nb1sgmdwf60bjc8kd8166p8lhlxgip38")))) + (build-system pyproject-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; TODO Remove this when moving to recent versions of flit-core. + (add-after 'unpack 'fix-flit-core-glob + (lambda _ + (substitute* "pyproject.toml" + (("wagtail_localize\\/\\*\\*\\/tests") + (string-join + (find-files "." "tests$" #:directories? #t) + "\",\n \""))))) + (replace 'check + (lambda* (#:key tests? inputs #:allow-other-keys) + (if tests? + (invoke "python" "testmanage.py") + (format #t "test suite not run~%"))))))) + (propagated-inputs (list python-django python-polib python-wagtail)) + (native-inputs (list python-dj-database-url + python-flit-core + python-freezegun + python-typing-extensions)) + (home-page "https://www.wagtail-localize.org") + (synopsis "Translating for Wagtail Content Management System (CMS)") + (description "This package provides a translation plugin for Wagtail CMS.") + (license license:bsd-3))) -- 2.39.2