mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
8b33448649
commit
a40c1772d4
1 changed files with 10 additions and 19 deletions
|
@ -343,7 +343,7 @@ are useful when writing automated tests in Python.")
|
|||
(define-public python-coveralls
|
||||
(package
|
||||
(name "python-coveralls")
|
||||
(version "3.2.0")
|
||||
(version "4.0.1")
|
||||
(home-page "https://github.com/coveralls-clients/coveralls-python")
|
||||
(source
|
||||
(origin
|
||||
|
@ -352,28 +352,19 @@ are useful when writing automated tests in Python.")
|
|||
(uri (git-reference (url home-page) (commit version)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"1915ab77nfb1rfw4i2ps0zy19wpf20lwxn81qxxbwyd2gy7m0fn8"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet '(substitute* "setup.py"
|
||||
(("'coverage>=4.1,<6.0',") "'coverage',")))))
|
||||
(build-system python-build-system)
|
||||
(base32 "1411h7rwxgp9ag26bmlpy7g7sdh39f56dc1mrd1n74bjsgvwzj6l"))))
|
||||
(build-system pyproject-build-system)
|
||||
(arguments
|
||||
'(#:phases (modify-phases %standard-phases
|
||||
(add-before 'check 'disable-git-test
|
||||
(lambda _
|
||||
;; Remove test that requires 'git' and the full checkout.
|
||||
(delete-file "tests/git_test.py")))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(if tests?
|
||||
;; Test fails for unknown reasons. No fix available.
|
||||
(invoke "pytest" "-vv" "-k" "not test_reporter_with_branches")
|
||||
(format #t "test suite not run~%")))))))
|
||||
(list #:test-flags '(list
|
||||
;; XXX: Avoid git dependency.
|
||||
"--ignore=tests/git_test.py"
|
||||
;; XXX: Unable to find coverage package.
|
||||
"--ignore=tests/api/reporter_test.py"
|
||||
"--ignore=tests/integration_test.py")))
|
||||
(propagated-inputs
|
||||
(list python-coverage python-docopt python-pyyaml python-requests))
|
||||
(native-inputs
|
||||
(list python-mock python-pytest python-responses))
|
||||
(list poetry python-mock python-pytest python-responses))
|
||||
(synopsis "Show coverage stats online via coveralls.io")
|
||||
(description
|
||||
"Coveralls.io is a service for publishing code coverage statistics online.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue