summaryrefslogtreecommitdiff
path: root/gnu/packages/python-check.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2024-11-28 08:52:23 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:28:41 +0000
commita40c1772d4bd919d0b734c38758d428186ffde03 (patch)
treeee42bedf8a2870ade43b455be346ab8f73fd7729 /gnu/packages/python-check.scm
parent8b33448649e544ec222281a301b0ff08c64f029e (diff)
gnu: python-coveralls: Update to 4.0.1.
* gnu/packages/python-check.scm (python-coveralls): Update to 4.0.1. [source]<origin>: Remove uneeded modules and snippet fields. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Move functionality to... <#:test-flags>: ...here. Add failing tests. [native-inputs]: Add poetry. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-check.scm')
-rw-r--r--gnu/packages/python-check.scm29
1 files changed, 10 insertions, 19 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index c6fd0508b52..1c92ebf9e88 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -343,7 +343,7 @@ are useful when writing automated tests in Python.")
343(define-public python-coveralls 343(define-public python-coveralls
344 (package 344 (package
345 (name "python-coveralls") 345 (name "python-coveralls")
346 (version "3.2.0") 346 (version "4.0.1")
347 (home-page "https://github.com/coveralls-clients/coveralls-python") 347 (home-page "https://github.com/coveralls-clients/coveralls-python")
348 (source 348 (source
349 (origin 349 (origin
@@ -352,28 +352,19 @@ are useful when writing automated tests in Python.")
352 (uri (git-reference (url home-page) (commit version))) 352 (uri (git-reference (url home-page) (commit version)))
353 (file-name (git-file-name name version)) 353 (file-name (git-file-name name version))
354 (sha256 354 (sha256
355 (base32 355 (base32 "1411h7rwxgp9ag26bmlpy7g7sdh39f56dc1mrd1n74bjsgvwzj6l"))))
356 "1915ab77nfb1rfw4i2ps0zy19wpf20lwxn81qxxbwyd2gy7m0fn8")) 356 (build-system pyproject-build-system)
357 (modules '((guix build utils)))
358 (snippet '(substitute* "setup.py"
359 (("'coverage>=4.1,<6.0',") "'coverage',")))))
360 (build-system python-build-system)
361 (arguments 357 (arguments
362 '(#:phases (modify-phases %standard-phases 358 (list #:test-flags '(list
363 (add-before 'check 'disable-git-test 359 ;; XXX: Avoid git dependency.
364 (lambda _ 360 "--ignore=tests/git_test.py"
365 ;; Remove test that requires 'git' and the full checkout. 361 ;; XXX: Unable to find coverage package.
366 (delete-file "tests/git_test.py"))) 362 "--ignore=tests/api/reporter_test.py"
367 (replace 'check 363 "--ignore=tests/integration_test.py")))
368 (lambda* (#:key tests? #:allow-other-keys)
369 (if tests?
370 ;; Test fails for unknown reasons. No fix available.
371 (invoke "pytest" "-vv" "-k" "not test_reporter_with_branches")
372 (format #t "test suite not run~%")))))))
373 (propagated-inputs 364 (propagated-inputs
374 (list python-coverage python-docopt python-pyyaml python-requests)) 365 (list python-coverage python-docopt python-pyyaml python-requests))
375 (native-inputs 366 (native-inputs
376 (list python-mock python-pytest python-responses)) 367 (list poetry python-mock python-pytest python-responses))
377 (synopsis "Show coverage stats online via coveralls.io") 368 (synopsis "Show coverage stats online via coveralls.io")
378 (description 369 (description
379 "Coveralls.io is a service for publishing code coverage statistics online. 370 "Coveralls.io is a service for publishing code coverage statistics online.