[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH 25/29] gnu: python-wrapt: Enable tests.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH 25/29] gnu: python-wrapt: Enable tests. |
Date: |
Thu, 21 Oct 2021 04:01:56 +0000 |
* gnu/packages/python-xyz.scm (python-wrapt)[source]: Fetch from GitHub.
[arguments]: Remove #:tests?. Override 'check phase.
---
gnu/packages/python-xyz.scm | 21 ++++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5476e3913a..eef7ef5add 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10812,16 +10812,23 @@ Supported netlink families and protocols include:
(version "1.12.1")
(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
- "1mwpkdnqxf0yxj1a0hsnl06lf287qi5ap7309wm37x45zf0zlbxn"))))
+ (base32 "0943ixbiwixl5ch60vx7i2nia16534zgq2571ldzq1iimq3cz5vj"))))
(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 21/29] gnu: python-watchdog: Update to 0.10.7., (continued)
- [bug#51314] [PATCH 21/29] gnu: python-watchdog: Update to 0.10.7., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 15/29] gnu: Add python-sgmllib3k., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 16/29] gnu: python-feedparser: Update to 6.0.8., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 08/29] gnu: python-flask: Respect #:tests?., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 18/29] gnu: python-netifaces: Update to 0.11.0., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 07/29] gnu: python-flask: Update to 1.1.4., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 11/29] gnu: Add python-zipstream-new., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 23/29] gnu: python-zeroconf: Update to 0.33.4., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 24/29] gnu: python-wrapt: Update to 1.12.1., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 26/29] gnu: Add octoprint-pisupport., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 25/29] gnu: python-wrapt: Enable tests.,
Vinicius Monego <=
- [bug#51314] [PATCH 29/29] gnu: Add octoprint., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 27/29] gnu: Add octoprint-firmwarecheck., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 28/29] gnu: Add octoprint-filecheck., Vinicius Monego, 2021/10/21