guix-commits
[Top][All Lists]
Advanced

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

133/150: gnu: python-cssselect2: Add missing build inputs.


From: guix-commits
Subject: 133/150: gnu: python-cssselect2: Add missing build inputs.
Date: Sun, 24 Apr 2022 05:12:44 -0400 (EDT)

lbraun pushed a commit to branch wip-python-pep517
in repository guix.

commit 3e45917032795f6905d39f693ee37f620870f112
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Sun Jan 9 12:02:34 2022 +0100

    gnu: python-cssselect2: Add missing build inputs.
    
    * gnu/packages/python-web.scm (python-cssselect2)[arguments]: Override
     #:build-backend and #:test-flags, remove custom 'check phase.
    [native-inputs]: Add python-flit-core.
---
 gnu/packages/python-web.scm | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 443ddf2dc7..226ad1496d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4615,24 +4615,13 @@ in various CSS modules.")
         (base32 "1j2fcr217rsvkipsg6zjq03rl64rxnvb5hqqpx0dv58fhspvkywk"))))
     (build-system python-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'disable-linters
-           ;; Their check fails; none of our business.
-           (lambda _
-             (substitute* '("setup.py" "pyproject.toml")
-               (("'pytest-flake8',") "")
-               (("'pytest-isort',") "")
-               (("--flake8") "")
-               (("--isort") ""))))
-         (replace 'check
-           (lambda* (#:key tests? #:allow-other-keys)
-             (when tests?
-               (lambda _ (invoke "pytest"))))))))
+     `(#:build-backend "flit_core.buildapi"
+       #:test-flags '("-vv" "tests")))
     (propagated-inputs
      (list python-tinycss2))
     (native-inputs
-     (list python-pytest-cov python-pytest-runner))
+     (list python-pytest-cov python-pytest-flake8 python-pytest-isort
+           python-pytest-runner python-flit-core))
     (home-page "https://cssselect2.readthedocs.io/";)
     (synopsis "CSS selectors for Python ElementTree")
     (description "@code{cssselect2} is a straightforward implementation of



reply via email to

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