From 796e68cb6401814e496405105896b375a942791d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 15 Aug 2025 23:18:03 +0100 Subject: [PATCH] gnu: Add python-asyncclick. * gnu/packages/python-xyz.scm (python-asyncclick): New variable. Change-Id: I420c61daef88abfd2409c6eab3bf28e864069777 --- gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 831c439b87afa47b9910b546fffca573b3b9a0d9..0107f3f08ea79783b94df6211198b6f4216c2254 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -381,6 +381,55 @@ These aspects include CPU, network fabrics, etc. In addition, it offers APIs to detect, query, and compare them.") (license license:expat))) +(define-public python-asyncclick + (package + (name "python-asyncclick") + (version "8.2.2.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "asyncclick" version)) + (sha256 + (base32 "0q26q8r1x5j9nz72xcb80vjx5maha6yswdmw2li4mwqyzdxnnkq1")))) + (build-system pyproject-build-system) + (arguments + (list + ;; tests: 1397 passed, 29 skipped, 72 deselected, 4 xfailed + #:test-flags + #~(list "-k" (string-join + ;; See: . + (list "not test_confirm_repeat[asyncio]" + "test_confirm_repeat[trio]" + "test_file_prompt_default_format[asyncio-file_kwargs0]" + "test_file_prompt_default_format[asyncio-file_kwargs1]" + "test_file_prompt_default_format[asyncio-file_kwargs2]" + "test_file_prompt_default_format[trio-file_kwargs0]" + "test_file_prompt_default_format[trio-file_kwargs1]" + "test_file_prompt_default_format[trio-file_kwargs2]" + "test_prompts[asyncio]" + "test_prompts[trio]" + ;; Requires less + "test_echo_via_pager") + " and not ")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-conftest + ;; See: . + (lambda _ + (substitute* "tests/conftest.py" + (("from click") "from asyncclick"))))))) + (native-inputs + (list python-anyio + python-flit-core-next + python-pytest + python-trio)) + (home-page "https://github.com/python-trio/asyncclick") + (synopsis "Python composable command line utility, trio-compatible version ") + (description + "AsyncClick is a fork of Click that works well with anyio, Trio, or +asyncio.") + (license license:bsd-3))) + (define-public python-asyncstdlib (package (name "python-asyncstdlib")