mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: dynaconf: Fix build following python-click upgrade.
* gnu/packages/python-xyz.scm (dynaconf) [phases]{patch-for-click-8}: New phase. {check}: Remove extraneous setenv call. [native-inputs]: Use the regular python-pytest variable.
This commit is contained in:
parent
ab36b88b1a
commit
418630a63c
1 changed files with 6 additions and 4 deletions
|
@ -30183,12 +30183,14 @@ (define-public dynaconf
|
|||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-for-click-8
|
||||
(lambda _
|
||||
(substitute* "dynaconf/cli.py"
|
||||
(("click.get_os_args\\()") ;deprecated from Click 8.1+
|
||||
"sys.argv[1:]"))))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? outputs #:allow-other-keys)
|
||||
(when tests?
|
||||
(setenv "PATH"
|
||||
(string-append (assoc-ref outputs "out") "/bin:"
|
||||
(getenv "PATH")))
|
||||
;; These tests depend on hvac and a live Vault process.
|
||||
(delete-file "tests/test_vault.py")
|
||||
(invoke "make" "test_only")))))))
|
||||
|
@ -30196,7 +30198,7 @@ (define-public dynaconf
|
|||
(list python-click python-configobj python-dotenv-0.13.0
|
||||
python-ruamel.yaml python-toml))
|
||||
(native-inputs
|
||||
(list python-django python-flask python-pytest-6 python-pytest-cov
|
||||
(list python-django python-flask python-pytest python-pytest-cov
|
||||
python-pytest-mock))
|
||||
(home-page "https://www.dynaconf.com/")
|
||||
(synopsis "The dynamic configurator for your Python project")
|
||||
|
|
Loading…
Reference in a new issue