[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/08: gnu: python-django-rest-framework: Update to 3.13.1.
From: |
guix-commits |
Subject: |
07/08: gnu: python-django-rest-framework: Update to 3.13.1. |
Date: |
Fri, 17 Dec 2021 13:08:57 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 7d2550c3ffecf1ed45774b9ac1c4ff6bef807c4a
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Dec 17 16:58:42 2021 +0100
gnu: python-django-rest-framework: Update to 3.13.1.
* gnu/packages/django.scm (python-djangorestframework): Update to 3.13.1.
[arguments]: Remove obsolete workarounds. Set TZDIR in check phase.
[native-inputs]: Add TZDATA-FOR-TESTS.
[propagated-inputs]: Add PYTHON-PYTZ.
---
gnu/packages/django.scm | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index ddb71ae..2c9fdab 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1014,7 +1014,7 @@ Django projects, which allows association of a number of
tags with any
(define-public python-djangorestframework
(package
(name "python-djangorestframework")
- (version "3.12.4")
+ (version "3.13.1")
(source
(origin
(method git-fetch)
@@ -1024,26 +1024,22 @@ Django projects, which allows association of a number
of tags with any
(file-name (git-file-name name version))
(sha256
(base32
- "16n17dw35wqv47m8k8fixn0yywrvd6v4r573yr4nx6lbbiyi2cqn"))))
+ "11wfb156yin6mlgcdzfmi267jsq1cld131mxgd13aqsrj06zlray"))))
(build-system python-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- ;; Add a fix from the master branch for compatibility with Django
- ;; 3.2: https://github.com/encode/django-rest-framework/pull/7911
- ;; Remove for versions > 3.12.4.
- (substitute* "tests/test_fields.py"
- (("class MockTimezone:")
- "class MockTimezone(pytz.BaseTzInfo):"))
+ (lambda* (#:key tests? inputs #:allow-other-keys)
(if tests?
- (invoke "python" "runtests.py" "--nolint")
+ (begin
+ (setenv "TZDIR" (search-input-directory inputs
"share/zoneinfo"))
+ (invoke "python" "runtests.py"))
(format #t "test suite not run~%")))))))
(native-inputs
- (list python-pytest python-pytest-django))
+ (list python-pytest python-pytest-django tzdata-for-tests))
(propagated-inputs
- (list python-django))
+ (list python-django python-pytz))
(home-page "https://www.django-rest-framework.org")
(synopsis "Toolkit for building Web APIs with Django")
(description
- branch master updated (d080368 -> 3399c29), guix-commits, 2021/12/17
- 01/08: gnu: grfcodec: Fix build with GCC 10., guix-commits, 2021/12/17
- 03/08: gnu: python-graph-tool: Build with Cairomm 1.14., guix-commits, 2021/12/17
- 02/08: gnu: Remove unneeded uses of custom GCC versions., guix-commits, 2021/12/17
- 04/08: gnu: python-graph-tool: Remove input labels., guix-commits, 2021/12/17
- 05/08: gnu: libime: Update to 1.0.10., guix-commits, 2021/12/17
- 07/08: gnu: python-django-rest-framework: Update to 3.13.1.,
guix-commits <=
- 06/08: gnu: python-django: Add 4.0., guix-commits, 2021/12/17
- 08/08: gnu: python-djangorestframework: Rename to python-django-rest-framework., guix-commits, 2021/12/17