[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55474] [PATCH v3 17/17] gnu: Add python-wagtail-localize.
From: |
Nicolas Graves |
Subject: |
[bug#55474] [PATCH v3 17/17] gnu: Add python-wagtail-localize. |
Date: |
Mon, 17 Apr 2023 16:53:37 +0200 |
* 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
- [bug#55474] [PATCH v3 08/17] gnu: Add python-django-environ., (continued)
- [bug#55474] [PATCH v3 08/17] gnu: Add python-django-environ., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 10/17] gnu: Add python-l18n., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 07/17] gnu: Add python-django-request., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 09/17] gnu: Add python-draftjs-exporter., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 12/17] gnu: Add python-anyascii., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 11/17] gnu: Add python-parsy., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 13/17] gnu: Add python-telepath., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 14/17] gnu: Add python-django-permissionedforms., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 16/17] gnu: Add python-wagtail., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 15/17] gnu: python-openpyxl: Update to 3.1.2., Nicolas Graves, 2023/04/17
- [bug#55474] [PATCH v3 17/17] gnu: Add python-wagtail-localize.,
Nicolas Graves <=