guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

212/233: gnu: dynaconf: Fix build following python-click upgrade.


From: guix-commits
Subject: 212/233: gnu: dynaconf: Fix build following python-click upgrade.
Date: Sun, 24 Apr 2022 23:40:07 -0400 (EDT)

apteryx pushed a commit to branch wip-ipython-polyglossia
in repository guix.

commit e82902e189f1348ae601c1dc0120b4d81bf8b68d
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Apr 20 14:03:34 2022 -0400

    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.
---
 gnu/packages/python-xyz.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b73fc4e0a9..381667d380 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30065,12 +30065,14 @@ Python @code{set} interface.")
     (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")))))))
@@ -30078,7 +30080,7 @@ Python @code{set} interface.")
      (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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]