~ruther/guix-local

f3e1cf830ee6efd974d9c7a7ad18f18988a6ce79 — Sharlatan Hellseher 6 months ago 2b82e6d
gnu: glances: Switch to custom test-backend.

* gnu/packages/python-xyz.scm (glances)[arguments] <test-backend,
test-flags>: Use custom.
<phases>: Use default 'check.

Change-Id: I992dbc8c2068352680a7c542953339aef94c7f5e
1 files changed, 3 insertions(+), 6 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +3 -6
@@ 23656,6 23656,8 @@ numbers, real numbers, mixed types and more, and comes with a shell command
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'custom
      #:test-flags #~(list "unittest-core.py")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'disable-update-checks


@@ 23665,12 23667,7 @@ numbers, real numbers, mixed types and more, and comes with a shell command
              (substitute* "glances/outdated.py"
                (("^(.*)self\\.load_config\\(config\\)\n" line indentation)
                 (string-append indentation
                                "self.args.disable_check_update = True\n" line)))))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                ;; XXX: Taken from tox.ini.
                (invoke "python" "unittest-core.py")))))))
                                "self.args.disable_check_update = True\n" line))))))))
    (native-inputs (list python-pytest python-setuptools))
    (propagated-inputs (list python-defusedxml
                             python-jinja2