From: Hartmut Goebel <h.goebel@crazy-compilers.com>
To: 37617@debbugs.gnu.org
Subject: [bug#37617] [PATCH 3/6] gnu: Add python-cssselect2.
Date: Fri, 4 Oct 2019 13:08:21 +0200 [thread overview]
Message-ID: <20191004110824.16081-3-h.goebel@crazy-compilers.com> (raw)
In-Reply-To: <20191004110824.16081-1-h.goebel@crazy-compilers.com>
* gnu/packages/python-web.scm (python-cssselect2): New variable.
---
gnu/packages/python-web.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 576b75175d..0946a298a9 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3309,3 +3309,36 @@ grammar of CSS but doesn’t know specific rules, properties or values supported
in various CSS modules.")
(license license:bsd-3)))
+(define-public python-cssselect2
+ (package
+ (name "python-cssselect2")
+ (version "0.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cssselect2" version))
+ (sha256
+ (base32 "0skymzb4ncrm2zdsy80f53vi0arf776lvbp51hzh4ayp1il5lj3h"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _ (invoke "pytest"))))))
+ (propagated-inputs
+ `(("python-tinycss2" ,python-tinycss2)))
+ (native-inputs
+ `(("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-flake8" ,python-pytest-flake8)
+ ("python-pytest-isort" ,python-pytest-isort)
+ ("python-pytest-runner" ,python-pytest-runner)))
+ (home-page "https://cssselect2.readthedocs.io/")
+ (synopsis "CSS selectors for Python ElementTree")
+ (description "@code{cssselect2} is a straightforward implementation of
+CSS3 Selectors for markup documents (HTML, XML, etc.) that can be read by
+ElementTree-like parsers (including cElementTree, lxml, html5lib, etc.).
+
+Unlike the Python package @code{cssselect}, it does not translate selectors to
+XPath and therefore does not have all the correctness corner cases that are
+hard or impossible to fix in cssselect.")
+ (license license:bsd-3)))
--
2.21.0
next prev parent reply other threads:[~2019-10-04 11:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-04 11:06 [bug#37617] [PATCH 0/6] Add weasyprint and dependencies Hartmut Goebel
2019-10-04 11:08 ` [bug#37617] [PATCH 1/6] gnu: Add python-pytest-isort Hartmut Goebel
2019-10-04 11:08 ` [bug#37617] [PATCH 2/6] gnu: Add python-tinycss2 Hartmut Goebel
2019-10-04 11:08 ` Hartmut Goebel [this message]
2019-10-04 11:08 ` [bug#37617] [PATCH 4/6] gnu: Add python-cairosvg Hartmut Goebel
2019-10-04 11:08 ` [bug#37617] [PATCH 5/6] gnu: Add python-pyphen Hartmut Goebel
2019-10-04 11:08 ` [bug#37617] [PATCH 6/6] gnu: Add weasyprint Hartmut Goebel
[not found] ` <handler.37617.B.157018720926483.ack@debbugs.gnu.org>
2019-10-22 15:02 ` bug#37617: Acknowledgement ([PATCH 0/6] Add weasyprint and dependencies.) Hartmut Goebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191004110824.16081-3-h.goebel@crazy-compilers.com \
--to=h.goebel@crazy-compilers.com \
--cc=37617@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).