~ruther/guix-local

44f820d427a67d8bcbe2b4eea456f37ecdbe55f1 — Sharlatan Hellseher 1 year, 6 months ago 90456b3
gnu: python-pytest-shutil: Update to 1.8.0.

* gnu/packages/python-check.scm (python-pytest-shutil): Update to 1.8.0.
[arguments]<test-flags>: Enable all tests as they have no regressions.
<phases>: Remove use-path-instead-of-path.py as resolved in upstream.
[propagated-inputs]: Remove python-contextlib2; add python-mock and
python-six.
[native-inputs]: Remove python-mock; add python-setuptools and
python-wheel.

Change-Id: I2191387cce678801ea6016a1ff2a9ed78c415a82
1 files changed, 21 insertions(+), 22 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +21 -22
@@ 1453,39 1453,38 @@ isort.")
(define-public python-pytest-shutil
  (package
    (name "python-pytest-shutil")
    (version "1.7.0")
    (version "1.8.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pytest-shutil" version))
       (sha256
        (base32
         "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq"))))
         "18283zgs3z61paymzf0pp5x3di3hg3m91pvb3v7bmz3fggphdl5a"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags
      ;; This test is sensitive to generated terminal escape codes.
      '(list "-k" "not test_pretty_formatter")
      #:phases
      '(modify-phases %standard-phases
         (add-after 'unpack 'use-path-instead-of-path.py
           ;; path.py is obsolete.
           (lambda _
             (substitute* "setup.py"
               (("'path.py'") "'path'"))))
         (add-after 'unpack 'patch-tests
           (lambda _
             (mkdir "/tmp/bin")
             (substitute* "tests/integration/test_cmdline_integration.py"
               (("dirname = '/bin'")
                "dirname = '/tmp/bin'")
               (("bindir = os.path.realpath\\('/bin'\\)")
                "bindir = os.path.realpath('/tmp/bin')")))))))
    (propagated-inputs
     (list python-contextlib2 python-execnet python-path python-termcolor))
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-tests
            (lambda _
              (mkdir "/tmp/bin")
              (substitute* "tests/integration/test_cmdline_integration.py"
                (("dirname = '/bin'")
                 "dirname = '/tmp/bin'")
                (("bindir = os.path.realpath\\('/bin'\\)")
                 "bindir = os.path.realpath('/tmp/bin')")))))))
    (native-inputs
     (list python-mock python-pytest python-setuptools-git))
     (list python-pytest
           python-setuptools
           python-setuptools-git
           python-wheel))
    (propagated-inputs
     (list python-execnet
           python-mock
           python-path
           python-six
           python-termcolor))
    (home-page "https://github.com/manahl/pytest-plugins")
    (synopsis "Assorted shell and environment tools for py.test")
    (description