diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-29 22:49:13 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-03 07:40:21 +0000 |
| commit | efecac2a6a8a52c4934496330e085a41dd787826 (patch) | |
| tree | 268b4635bbcf0ef08c250f428c57270988cc156e /gnu/packages | |
| parent | 5e24cf492db070e1c10bf26e46480f4326eb9380 (diff) | |
gnu: python-clf: Switch to pyproject.
* gnu/packages/web.scm (python-clf):
[build-system]: Switch to pyproject-build-system.
[arguments]: Relocate field, improve style.
[propagated-inputs]: Remove python-nose, python-lxml, python-pyaml.
[native-inputs]: Add python-pynose, python-setuptools.
Change-Id: I975f1db21afbfa5af283a0f409e1d6b4259d3575
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/web.scm | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index f68eb31d511..bc0e0c73328 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -7514,14 +7514,24 @@ internetarchive python module for programmatic access to archive.org.") (sha256 (base32 "0zlkzqnpz7a4iavsq5vaz0nf5nr7qm5znpg1vlpz6rwnx6hikjdb")))) - (build-system python-build-system) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list + ;; These tests require an Internet connection. + "--exclude=test_browse" + "--exclude=test_command" + "--exclude=test_search") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'get-tests + (lambda* (#:key inputs #:allow-other-keys) + (copy-file (assoc-ref inputs "test-clf") "test_clf.py")))))) (propagated-inputs (list python-docopt python-pygments - python-requests - python-nose - python-lxml - python-pyaml)) + python-requests)) (inputs `(("test-clf" ,(origin @@ -7532,20 +7542,7 @@ internetarchive python module for programmatic access to archive.org.") (sha256 (base32 "19lr5zdzsmxgkg7wrjq1yzkiahd03wi4k3dskssyhmjls8c10nqd")))))) - (arguments - '(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'get-tests - (lambda _ - (copy-file (assoc-ref %build-inputs "test-clf") "test_clf.py") - #t)) - (replace 'check - (lambda _ - (invoke "nosetests" - ;; These tests require an Internet connection. - "--exclude=test_browse" - "--exclude=test_command" - "--exclude=test_search")))))) + (native-inputs (list python-pynose python-setuptools)) (home-page "https://github.com/ncrocfer/clf") (synopsis "Search code snippets on @url{https://commandlinefu.com}") (description "@code{clf} is a command line tool for searching code |
