[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/15: gnu: python-funcparserlib: Enable tests.
From: |
guix-commits |
Subject: |
13/15: gnu: python-funcparserlib: Enable tests. |
Date: |
Sat, 5 Nov 2022 06:48:07 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit f91713e71b6bc1222c8f5b218dede3dc7e670a3c
Author: jgart <jgart@dismail.de>
AuthorDate: Wed Nov 2 02:03:46 2022 -0500
gnu: python-funcparserlib: Enable tests.
* gnu/packages/python-xyz.scm (python-funcparserlib): Enable tests.
[origin]: Use GitHub since it includes the tests unlike PyPi.
[build-system]: Use pyproject-build-system.
[arguments]: Run tests.
[native-inputs]: Add python-poetry-core.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/python-xyz.scm | 25 ++++++++++++++++++-------
1 file changed, 18 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 684fe88740..5b619c5cfa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25348,14 +25348,25 @@ scripts to load entry points more quickly.")
(name "python-funcparserlib")
(version "1.0.0")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "funcparserlib" version))
- (sha256
- (base32 "0swbqf53x7lfnczvi566s1g3nkf5mfrxz7sbpyymricz57a3vlvx"))))
- (build-system python-build-system)
+ (origin
+ ;; Source tarball on PyPi lacks tests.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/vlasovskikh/funcparserlib")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00pswdys5c4hpqpvfcy5zqv30gyjvjvagi12811jizw57hxrm1cs"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ; no tests in PyPI and no setup.py in GitHub
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest" "discover" "-v")))))))
+ ;; ModuleNotFoundError: No module named 'poetry'
+ (native-inputs (list python-poetry-core))
(home-page "https://github.com/vlasovskikh/funcparserlib")
(synopsis
"Recursive descent parsing library based on functional combinators")
- branch master updated (e67f9d7ab0 -> 84d239599a), guix-commits, 2022/11/05
- 09/15: gnu: Add ssh-to-age., guix-commits, 2022/11/05
- 10/15: gnu: thefuck: Update to 3.32., guix-commits, 2022/11/05
- 05/15: gnu: Add tasksh., guix-commits, 2022/11/05
- 13/15: gnu: python-funcparserlib: Enable tests.,
guix-commits <=
- 15/15: gnu: python-pudb: Update to 2022.1.3., guix-commits, 2022/11/05
- 01/15: Add EditorConfig specification., guix-commits, 2022/11/05
- 07/15: gnu: oauth2l: Update to 1.3.0., guix-commits, 2022/11/05
- 02/15: gnu: python-frozendict: Update to 2.3.4., guix-commits, 2022/11/05
- 03/15: gnu: python-canonicaljson: Update to 1.6.3., guix-commits, 2022/11/05
- 04/15: gnu: Add guilescript., guix-commits, 2022/11/05
- 06/15: gnu: Add python-neovim-remote., guix-commits, 2022/11/05
- 11/15: gnu: i3-autotiling: Update to 1.8., guix-commits, 2022/11/05
- 08/15: gnu: neomutt: Update to 20220429., guix-commits, 2022/11/05
- 12/15: gnu: python-lief: Update to 0.12.3., guix-commits, 2022/11/05