[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#74580] [PATCH 02/14] gnu: python-praw: Update to 7.8.1.
From: |
Nicolas Graves |
Subject: |
[bug#74580] [PATCH 02/14] gnu: python-praw: Update to 7.8.1. |
Date: |
Thu, 28 Nov 2024 08:52:14 +0100 |
* gnu/packages/python-web.scm (python-praw): Update to 7.8.1.
[source]<origin>: Fetch from git to download tests.
[build-system]: Move to pyproject-build-system.
[arguments]<#:test-flags>: Skip failing tests.
[native-inputs]: Add python-flit-core.
---
gnu/packages/python-web.scm | 40 ++++++++++++++++---------------------
1 file changed, 17 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 422dc7e39d..c5ff14b4ee 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -385,34 +385,28 @@ (define-public python-prawcore
(define-public python-praw
(package
(name "python-praw")
- (version "7.6.1")
+ (version "7.8.1")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "praw" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/praw-dev/praw")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "17pvdlcasr08p5hb1x7shjh8yvn621lzm0bvnwd3b1r1qpzrbz07"))))
- (build-system python-build-system)
+ (base32 "05qq43l4334cq8r8k731qnb45nq12vvfdxwbr6q84a1hafp7n4cg"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'disable-failing-tests
- (lambda _
- (with-directory-excursion "tests"
- ;; Integration tests depend on files that are not included.
- (for-each delete-file-recursively
- '("integration/models" "unit/models"))
- ;; The configuration file does not seem to exist.
- (delete-file "unit/test_config.py"))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-k"
- ;; These tests depend on test files that don't exist.
- (string-append "not
test_bad_request_without_json_text_plain_response"
- " and not
test_bad_request_without_json_text_html_response"))))))))
+ (list #:test-flags
+ #~(list "--ignore=tests/units/models"
+ "--ignore=tests/integration/models"
+ "--ignore=tests/unit/test_config.py"
+ "--ignore=tests/integration/test_reddit.py")))
(native-inputs
- (list python-betamax python-betamax-matchers python-pytest))
+ (list python-betamax
+ python-betamax-matchers
+ python-flit-core
+ python-pytest))
(propagated-inputs
(list python-prawcore python-update-checker python-websocket-client))
(synopsis "Python Reddit API Wrapper")
--
2.46.0
- [bug#74580] [PATCH 00/14] [python-team], Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 01/14] gnu: python-prawcore: Update to 2.4.0., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 04/14] gnu: cpplint: Add missing native inputs., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 02/14] gnu: python-praw: Update to 7.8.1.,
Nicolas Graves <=
- [bug#74580] [PATCH 03/14] gnu: giara: Update to 1.1.0., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 06/14] gnu: python-tqdm: Update to 4.67.1., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 09/14] gnu: python-websockets: Update to 13.1., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 07/14] gnu: python-fsspec: Update to 2024.10.0., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 14/14] gnu: python-joblib: Update to 1.4.2., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 08/14] gnu: python-coverage: Update to 7.6.8., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 12/14] gnu: python-httpcore: Update to 1.0.7., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 11/14] gnu: python-coveralls: Update to 4.0.1., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 10/14] gnu: python-pytest-httpx: Update to 0.34.0., Nicolas Graves, 2024/11/28
- [bug#74580] [PATCH 05/14] gnu: python-ads: Add missing native-inputs., Nicolas Graves, 2024/11/28