[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65758] [PATCH v6 54/55] gnu: Add python-wagtail-localize.
From: |
Nicolas Graves |
Subject: |
[bug#65758] [PATCH v6 54/55] gnu: Add python-wagtail-localize. |
Date: |
Tue, 5 Sep 2023 18:31:30 +0200 |
* gnu/packages/django.scm (python-wagtail-localize): New variable.
---
gnu/packages/django.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 20a4250b4d..30824efc8a 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1804,3 +1804,43 @@ (define-public python-wagtail-factories
(description "This package provides factory boy classes for
@code{wagtail}. It is used for the migrating streamfields.")
(license license:expat)))
+
+(define-public python-wagtail-localize
+ (package
+ (name "python-wagtail-localize")
+ (version "1.5.1")
+ (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 "143rwwz94wlqwbckg8ccfxkn5ydb1mzr9dqn4zldpsrbgg3p4cj6"))))
+ (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.41.0
- [bug#65758] [PATCH v6 42/55] gnu: Add python-jinjalint., (continued)
- [bug#65758] [PATCH v6 42/55] gnu: Add python-jinjalint., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 40/55] gnu: Add python-django-treebeard., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 46/55] gnu: Add python-draftjs-exporter., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 48/55] gnu: Add python-anyascii., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 45/55] gnu: Add python-django-environ., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 53/55] gnu: Add python-wagtail-factories., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 47/55] gnu: Add python-l18n., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 49/55] gnu: Add python-telepath., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 50/55] gnu: Add python-django-permissionedforms., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 55/55] gnu: python-django: Update to 4.1.9., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v6 54/55] gnu: Add python-wagtail-localize.,
Nicolas Graves <=
- [bug#65758] [PATCH v6 52/55] gnu: Add python-wagtail., Nicolas Graves, 2023/09/05
- [bug#65758] [PATCH v7 01/57] gnu: python-django-4.0: Update to 4.0.9., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 02/57] gnu: python-asgiref: Update to 3.6.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 05/57] gnu: Add python-django-4.2., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 03/57] gnu: Add python-asgiref-3.4.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 06/57] gnu: python-django-extensions: Update to 3.2.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 04/57] gnu: python-distributed: Disable failing tests., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 08/57] gnu: python-django-3.1.14: Skip failing tests., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 07/57] gnu: Add python-django-extensions-3.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 17/57] gnu: graphite-web: Update to 1.1.10-0-dca59dc., Nicolas Graves, 2023/09/06