~ruther/guix-local

c4e7ae299e4dbd1d8c30ef32f0c8461760768df4 — Nicolas Graves 8 months ago a8c7cfb
gnu: python-pillow: Remove some native-inputs.

* gnu/packages/python-xyz.scm (python-pillow)
[source, arguments]: Run guix style.
<#:phases>: In phase 'check, remove add-installed-pythonpath call.
[native-inputs]: Remove python-packaging, python-pytest-cov,
python-pytest-timeout, python-wheel.

Change-Id: I1fe174977ff94af61c77fdf52bf1e28adc4aa6fb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 19 insertions(+), 27 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +19 -27
@@ 12486,41 12486,33 @@ Python list with elements of type @code{PIL.Image} (from the
  (package
    (name "python-pillow")
    (version "11.1.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "pillow" version))
              (sha256
               (base32
                "081abgpz7g013cgzz7pjhmf8m7q626ngza4hnfs76vdk104ag39n"))))
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "pillow" version))
       (sha256
        (base32 "081abgpz7g013cgzz7pjhmf8m7q626ngza4hnfs76vdk104ag39n"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:phases
      '(modify-phases %standard-phases
         (add-after 'unpack 'patch-ldconfig
           (lambda _
             (substitute* "setup.py"
               (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
         (replace 'check
           (lambda* (#:key outputs inputs tests? #:allow-other-keys)
             (when tests?
               (setenv "HOME"
                       (getcwd))
               (add-installed-pythonpath inputs outputs)
               (invoke "python" "selftest.py" "--installed")
               (invoke "python" "-m" "pytest" "-vv")))))))
    (native-inputs (list python-check-manifest
                         python-coverage
                         python-defusedxml
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-ldconfig
            (lambda _
              (substitute* "setup.py"
                (("\\['/sbin/ldconfig', '-p'\\]") "['true']"))))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (setenv "HOME" (getcwd))
                (invoke "python" "selftest.py" "--installed")
                (invoke "python" "-m" "pytest" "-vv")))))))
    (native-inputs (list python-defusedxml
                         python-markdown2
                         python-olefile
                         python-packaging
                         python-pytest
                         python-pytest-cov
                         python-pytest-timeout
                         python-setuptools
                         python-trove-classifiers
                         python-wheel))
                         python-trove-classifiers))
    (inputs (list freetype
                  lcms
                  libjpeg-turbo