diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-18 11:54:46 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-18 12:54:05 +0100 |
| commit | 9eb0c6bcde6806e1b4ca79a75b980b39eb5ba024 (patch) | |
| tree | b19dbf21c2cc94181352b5fca8edb4ae99e47e66 /gnu | |
| parent | 45aced9a726cebed910c62a1d849722146a07c3d (diff) | |
gnu: silkaj: Update to 0.12.1, fix buld.
* gnu/packages/finance.scm (silkaj): Update to 0.12.1.
[source]: Switch to git-fetch providing tests.
[arguments] <test-flags>: Ignore integration test files, and deselect
problematic tests.
<phases>: Add 'set-check-environment.
[propagated-inputs]: Remove python-click and python-tabulate; add
python-rich-click.
[native-inputs]: Add python-pytest, python-pytest-sugar, and
tzdata-for-tests.
Change-Id: Iba45129615a568eaf70f756651a112272c40a9b9
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/finance.scm | 39 |
1 files changed, 31 insertions, 8 deletions
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 5caa0643281..a831ca4166e 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -1632,21 +1632,44 @@ main features are: (define-public silkaj (package (name "silkaj") - (version "0.10.0") + (version "0.12.1") (source (origin - (method url-fetch) - (uri (pypi-uri "silkaj" version)) + (method git-fetch) + (uri (git-reference + (url "https://git.duniter.org/clients/python/silkaj") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "0p8jqnswrrxri8i2ikdz8mij7gks0yab3wdcb37jf2kjwmrwanpk")))) + (base32 "0prglgwvzi676h4lyw9266sqiqbfs2l0mv0bmjvplvdxzzcs63bv")))) (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; They require Poetry in the PATH. + #~(list "--ignore=tests/integration/" + ;; Network access is required. + "--deselect=tests/unit/money/test_history.py::test_csv_output" + ;; AssertionError: Expected 'mock' to have been called + ;; once. Called 0 times + "--deselect=tests/unit/test_auth.py::test_authentication_wif") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'set-check-environment + (lambda* (#:key inputs #:allow-other-keys) + (setenv "TZ" "UTC") + (setenv "TZDIR" + (search-input-directory inputs + "share/zoneinfo"))))))) (native-inputs - (list python-poetry-core)) + (list python-poetry-core + python-pytest + python-pytest-sugar + tzdata-for-tests)) (propagated-inputs - (list python-click - python-duniterpy + (list python-duniterpy python-pendulum - python-tabulate + python-rich-click python-texttable)) (home-page "https://git.duniter.org/clients/python/silkaj") (synopsis "Command line client for Duniter network") |
