diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-01-19 11:49:43 +0000 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:38:04 +0100 |
| commit | 3e4f27f54c6b5742e46f95ab87f9af287848dc2c (patch) | |
| tree | b1684f77dc93cc903c139edb2c3d3c9ef12a2fe4 /gnu/packages | |
| parent | 8a490d8b7c5407b56eee36fd9be75de2930e1448 (diff) | |
gnu: python-libcst: Update to 0.3.18.
* gnu/packages/python-xyz.scm (python-libcst): Update to 0.3.18. Use
G-Expressions, improve style and fix build.
[build-system]: Swap to pyproject-build-system.
[arguments] <test-flags>: Move skip test logic here instead of deleting
test files.
<phases>: Remove 'generate-test-data. Use default 'check.
[native-inputs]: Remove python-black and python-isort; add
python-pytest, python-setuptools, and python-wheel.
(python-libcst-minimal) [native-inputs]: Add python-setuptools and
python-wheel.
Change-Id: Ia3e85d17d02a8ea1dd7bc0b2a9062d46b11d6651
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 54 |
1 files changed, 29 insertions, 25 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 56346bd1a82..46a46ae84cf 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -22942,38 +22942,40 @@ some degree most natural languages too.") | |||
| 22942 | (define-public python-libcst | 22942 | (define-public python-libcst |
| 22943 | (package | 22943 | (package |
| 22944 | (name "python-libcst") | 22944 | (name "python-libcst") |
| 22945 | (version "0.3.8") | 22945 | (version "0.3.18") ; starting from 0.4.0 project depends on Rust |
| 22946 | (source (origin | 22946 | (source (origin |
| 22947 | (method url-fetch) | 22947 | (method url-fetch) |
| 22948 | (uri (pypi-uri "libcst" version)) | 22948 | (uri (pypi-uri "libcst" version)) |
| 22949 | (sha256 | 22949 | (sha256 |
| 22950 | (base32 | 22950 | (base32 |
| 22951 | "05zsc61gsd2pyb6wiyh58zczndxi6rm4d2jl94rpf5cv1fzw6ks8")))) | 22951 | "1ll0yyxbz8zyqcy9kfcqi3l5fah2zqisvpjbzjnz7s7dmb84q59h")))) |
| 22952 | (build-system python-build-system) | 22952 | (build-system pyproject-build-system) |
| 22953 | (arguments | 22953 | (arguments |
| 22954 | `(#:phases | 22954 | (list |
| 22955 | (modify-phases %standard-phases | 22955 | #:test-flags |
| 22956 | (add-after 'unpack 'remove-failing-tests | 22956 | #~(list |
| 22957 | (lambda _ | 22957 | ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>. |
| 22958 | ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/346>. | 22958 | "--ignore=libcst/tests/test_fuzz.py" |
| 22959 | (delete-file "libcst/tests/test_fuzz.py") | 22959 | ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>. |
| 22960 | ;; Reported upstream: <https://github.com/Instagram/LibCST/issues/347>. | 22960 | "--ignore=libcst/tests/test_pyre_integration.py" |
| 22961 | (delete-file "libcst/tests/test_pyre_integration.py") | 22961 | "--ignore=libcst/codemod/tests/test_codemod_cli.py" |
| 22962 | (delete-file "libcst/codemod/tests/test_codemod_cli.py") | 22962 | "--ignore=libcst/metadata/tests/test_full_repo_manager.py" |
| 22963 | (delete-file "libcst/metadata/tests/test_full_repo_manager.py") | 22963 | "--ignore=libcst/metadata/tests/test_type_inference_provider.py" |
| 22964 | (delete-file "libcst/metadata/tests/test_type_inference_provider.py"))) | 22964 | "-k" (string-join |
| 22965 | (add-before 'check 'generate-test-data | 22965 | ;; AssertionError: False is not true : libcst.matchers.__init__ |
| 22966 | (lambda _ | 22966 | ;; needs new codegen! |
| 22967 | (invoke "python" "-m" "libcst.codegen.generate" "visitors") | 22967 | (list "not test_codegen_clean_matcher_classes" |
| 22968 | (invoke "python" "-m" "libcst.codegen.generate" "return_types"))) | 22968 | "test_codegen_clean_return_types" |
| 22969 | (replace 'check | 22969 | "test_codegen_clean_visitor_functions") |
| 22970 | (lambda* (#:key tests? #:allow-other-keys) | 22970 | " and not ")))) |
| 22971 | (when tests? | ||
| 22972 | (invoke "python" "-m" "unittest"))))))) | ||
| 22973 | (native-inputs | 22971 | (native-inputs |
| 22974 | (list python-black python-isort)) | 22972 | (list python-pytest |
| 22973 | python-setuptools | ||
| 22974 | python-wheel)) | ||
| 22975 | (propagated-inputs | 22975 | (propagated-inputs |
| 22976 | (list python-typing-extensions python-typing-inspect python-pyyaml)) | 22976 | (list python-typing-extensions |
| 22977 | python-typing-inspect | ||
| 22978 | python-pyyaml)) | ||
| 22977 | (home-page "https://github.com/Instagram/LibCST") | 22979 | (home-page "https://github.com/Instagram/LibCST") |
| 22978 | (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python") | 22980 | (synopsis "Concrete Syntax Tree (CST) parser and serializer library for Python") |
| 22979 | (description | 22981 | (description |
| @@ -22997,7 +22999,9 @@ feels like an AST.") | |||
| 22997 | (inherit python-libcst) | 22999 | (inherit python-libcst) |
| 22998 | (name "python-libcst-minimal") | 23000 | (name "python-libcst-minimal") |
| 22999 | (arguments '(#:tests? #f)) | 23001 | (arguments '(#:tests? #f)) |
| 23000 | (native-inputs '())))) | 23002 | (native-inputs |
| 23003 | (list python-setuptools | ||
| 23004 | python-wheel))))) | ||
| 23001 | 23005 | ||
| 23002 | (define-public python-typeapi | 23006 | (define-public python-typeapi |
| 23003 | (package | 23007 | (package |
