[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: Add python-cssselect2.
From: |
guix-commits |
Subject: |
03/06: gnu: Add python-cssselect2. |
Date: |
Tue, 22 Oct 2019 11:01:37 -0400 (EDT) |
htgoebel pushed a commit to branch master
in repository guix.
commit 7d3f481b905d1a0950f0f60e8ec244211a42b9ba
Author: Hartmut Goebel <address@hidden>
Date: Mon Sep 30 21:06:44 2019 +0200
gnu: Add python-cssselect2.
* 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 beecbef..55a39a8 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -3335,3 +3335,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)))
- branch master updated (0201e34 -> 73f0ed8), guix-commits, 2019/10/22
- 03/06: gnu: Add python-cssselect2.,
guix-commits <=
- 05/06: gnu: Add python-pyphen., guix-commits, 2019/10/22
- 01/06: gnu: Add python-pytest-isort., guix-commits, 2019/10/22
- 02/06: gnu: Add python-tinycss2., guix-commits, 2019/10/22
- 04/06: gnu: Add python-cairosvg., guix-commits, 2019/10/22
- 06/06: gnu: Add weasyprint., guix-commits, 2019/10/22