[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19/28: gnu: Add python-libcst-minimal.
From: |
guix-commits |
Subject: |
19/28: gnu: Add python-libcst-minimal. |
Date: |
Fri, 15 Jan 2021 16:34:52 -0500 (EST) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 9d44234960f66517c854a51c9bfae3a856924ba5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 15 15:12:55 2021 -0500
gnu: Add python-libcst-minimal.
* gnu/packages/python-xyz.scm (python-libcst-minimal): New variable.
(python-libcst): Add a tests? argument to the check phase override and strip
trailing #t.
---
gnu/packages/python-xyz.scm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 635d38f..eb7c040 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13185,17 +13185,16 @@ some degree most natural languages too.")
(delete-file "libcst/tests/test_pyre_integration.py")
(delete-file "libcst/codemod/tests/test_codemod_cli.py")
(delete-file "libcst/metadata/tests/test_full_repo_manager.py")
- (delete-file
"libcst/metadata/tests/test_type_inference_provider.py")
- #t))
+ (delete-file
"libcst/metadata/tests/test_type_inference_provider.py")))
(add-before 'check 'generate-test-data
(lambda _
(setenv "PYTHONPATH" (string-append (getcwd) ":" (getenv
"PYTHONPATH")))
(invoke "python" "-m" "libcst.codegen.generate" "visitors")
(invoke "python" "-m" "libcst.codegen.generate" "return_types")))
(replace 'check
- (lambda _
- (invoke "python" "-m" "unittest")
- #t)))))
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest")))))))
(native-inputs
`(("python-black" ,python-black)
("python-isort" ,python-isort)))
@@ -13220,6 +13219,14 @@ feels like an AST.")
;; libcst/_add_slots.py
license:asl2.0))))
+(define-public python-libcst-minimal
+ (hidden-package
+ (package
+ (inherit python-libcst)
+ (name "python-libcst-minimal")
+ (arguments '(#:tests? #f))
+ (native-inputs '()))))
+
(define-public python-typing-inspect
(package
(name "python-typing-inspect")
- 09/28: gnu: python-typed-ast: Update to 1.4.2., (continued)
- 09/28: gnu: python-typed-ast: Update to 1.4.2., guix-commits, 2021/01/15
- 13/28: gnu: python-babel: Fix build., guix-commits, 2021/01/15
- 14/28: gnu: python-simplejson: Update to 3.17.2, fixing build., guix-commits, 2021/01/15
- 15/28: gnu: python-backpack: Fix build., guix-commits, 2021/01/15
- 16/28: gnu: python-hypothesis: Update to 6.0.2, guix-commits, 2021/01/15
- 11/28: gnu: python-pympler: Update to 0.9., guix-commits, 2021/01/15
- 12/28: gnu: python-3.9: Add a search path specification for PYTHONTZPATH., guix-commits, 2021/01/15
- 17/28: gnu: python-flake8-pyi: Update to 20.10.0., guix-commits, 2021/01/15
- 20/28: gnu: python-hypothesmith: Update to 0.1.8., guix-commits, 2021/01/15
- 18/28: gnu: python-virtualenv: Update to 20.3.1., guix-commits, 2021/01/15
- 19/28: gnu: Add python-libcst-minimal.,
guix-commits <=
- 23/28: gnu: Add python-pylama., guix-commits, 2021/01/15
- 24/28: gnu: python2-pylint: Remove package., guix-commits, 2021/01/15
- 21/28: gnu: python-typing-inspect: Fix build on Python 3.9., guix-commits, 2021/01/15
- 22/28: gnu: Add python-mypy-minimal., guix-commits, 2021/01/15
- 25/28: gnu: python2-orator: Remove package., guix-commits, 2021/01/15
- 28/28: gnu: python-isort: Update to 5.7.0, fixing build on Python 3.9., guix-commits, 2021/01/15
- 26/28: gnu: python2-factory-boy: Remove package., guix-commits, 2021/01/15
- 27/28: gnu: python2-isort: Remove package., guix-commits, 2021/01/15