[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65758] [PATCH v7 53/57] gnu: Add python-wagtail-factories.
From: |
Nicolas Graves |
Subject: |
[bug#65758] [PATCH v7 53/57] gnu: Add python-wagtail-factories. |
Date: |
Wed, 6 Sep 2023 11:16:17 +0200 |
* gnu/packages/django.scm (python-wagtail-factories): New variable.
---
gnu/packages/django.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 8fea2a1723..46be4f6f71 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1769,3 +1769,41 @@ (define-public python-wagtail
(description "This package provides a Content Management System based on
Django.")
(license license:bsd-3)))
+
+(define-public python-wagtail-factories
+ (package
+ (name "python-wagtail-factories")
+ (version "4.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ ;; Fetch from the git repository, so that the tests can be run.
+ (uri (git-reference
+ (url "https://github.com/wagtail/wagtail-factories/")
+ (commit (string-append "v" version))))
+ (file-name (string-append name "-" version))
+ (sha256
+ (base32 "19ggc9nm31w7gq2k48ijhiq8dgkh63dsycvhrklxsrh8zwkwgln4"))))
+ (build-system pyproject-build-system)
+ (arguments
+ '(#:test-flags '("--settings=tests.settings" "--pythonpath=.")
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? test-flags #:allow-other-keys)
+ (if tests?
+ (apply invoke "django-admin" "test" test-flags)
+ (format #t "test suite not run~%"))))
+ ;; Importing this module requires setting up a Django project.
+ (delete 'sanity-check))))
+ (propagated-inputs (list python-factory-boy))
+ (native-inputs (list python-pytest
+ python-pytest-django
+ (package/inherit python-wagtail
+ (native-inputs '())
+ (arguments '(#:tests? #f)))))
+ (home-page "https://github.com/wagtail/wagtail-factories/")
+ (synopsis "Factory boy classes for wagtail")
+ (description "This package provides factory boy classes for
+@code{wagtail}. It is used for the migrating streamfields.")
+ (license license:expat)))
--
2.41.0
- [bug#65758] [PATCH v7 12/57] gnu: python-django-allauth: Update to 0.47.0., (continued)
- [bug#65758] [PATCH v7 12/57] gnu: python-django-allauth: Update to 0.47.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 19/57] gnu: python-django-contrib-comments: Update to 2.2.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 57/57] gnu: python-django-debug-toolbar: Update to 3.8.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 18/57] gnu: python-django-contact-form: Add native-input tzdata-for-tests., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 30/57] gnu: python-django-compressor: Update to 4.3.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 29/57] gnu: Remove python-pysolr., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 33/57] gnu: Add python-django-requests-debug-toolbar., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 27/57] gnu: python-rjsmin: Update to 1.2.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 41/57] gnu: Add python-parsy., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 45/57] gnu: Add python-django-environ., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 53/57] gnu: Add python-wagtail-factories.,
Nicolas Graves <=
- [bug#65758] [PATCH v7 47/57] gnu: Add python-l18n., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 50/57] gnu: Add python-django-permissionedforms., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 10/57] gnu: python-easy-thumbnails: Update to 2.8.5., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 15/57] gnu: Remove python-django-2.2., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 56/57] gnu: patchwork: Update to 3.1.3., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 26/57] gnu: python-rcssmin: Update to 1.1.1., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 35/57] gnu: python-django-rest-framework: Update to 3.14.0., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 54/57] gnu: Add python-wagtail-localize., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 13/57] gnu: python-django-debug-toolbar: Add native-input tzdata-for-tests., Nicolas Graves, 2023/09/06
- [bug#65758] [PATCH v7 16/57] gnu: datasette: Disabling failing tests., Nicolas Graves, 2023/09/06