[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH v3 17/21] gnu: python-wrapt: Enable tests.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH v3 17/21] gnu: python-wrapt: Enable tests. |
Date: |
Mon, 27 Dec 2021 23:30:40 +0000 |
* gnu/packages/python-xyz.scm (python-wrapt)[source]: Fetch from GitHub.
[arguments]: Remove #:tests?. Override 'check phase.
---
gnu/packages/python-xyz.scm | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b9f555a11b..2ddbfa14b7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10884,15 +10884,23 @@ Supported netlink families and protocols include:
(version "1.13.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "wrapt" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/GrahamDumpleton/wrapt")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32 "11f13zqgbql26g5bkfkqalckcdlz394g6dhx4y16cvk873a9rshz"))))
+ (base32 "05d7xs6rvaw9gpcvsvk7ckxiax1nrxcpv41vrqkkl7zq967d9bcj"))))
(build-system python-build-system)
(arguments
- ;; Tests are not included in the tarball, they are only available in the
- ;; git repository.
- `(#:tests? #f))
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "unittest" "discover"
+ "-s" "tests")))))))
(home-page "https://github.com/GrahamDumpleton/wrapt")
(synopsis "Module for decorators, wrappers and monkey patching")
(description
--
2.30.2
- [bug#51314] [PATCH v3 08/21] gnu: Add python-pytest-doctest-custom., (continued)
- [bug#51314] [PATCH v3 08/21] gnu: Add python-pytest-doctest-custom., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 09/21] gnu: python-feedparser: Enable tests., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 11/21] gnu: python-websocket-client: Update to 0.59.0., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 10/21] gnu: python-netifaces: Update to 0.11.0., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 13/21] gnu: python-watchdog: Update to 2.1.6., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 15/21] gnu: python-zeroconf: Update to 0.38.1., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 19/21] gnu: Add octoprint-firmwarecheck., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 12/21] gnu: python-pkginfo: Update to 1.8.2., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 14/21] gnu: python-colorlog: Update to 6.6.0., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 18/21] gnu: Add octoprint-pisupport., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 17/21] gnu: python-wrapt: Enable tests.,
Vinicius Monego <=
- [bug#51314] [PATCH v3 16/21] gnu: python-wrapt: Update to 1.13.3., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 20/21] gnu: Add octoprint-filecheck., Vinicius Monego, 2021/12/27
- [bug#51314] [PATCH v3 21/21] gnu: Add octoprint., Vinicius Monego, 2021/12/27