[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/15: gnu: python-tinycss2: Update to 1.1.0.
From: |
guix-commits |
Subject: |
13/15: gnu: python-tinycss2: Update to 1.1.0. |
Date: |
Sun, 29 Nov 2020 14:08:59 -0500 (EST) |
apteryx pushed a commit to branch master
in repository guix.
commit fc72594c288bff183df479dfa0a5caff18806871
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Sat Nov 28 03:06:24 2020 -0500
gnu: python-tinycss2: Update to 1.1.0.
* gnu/packages/patches/python-tinycss2-flake8-compat.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): De-register it.
* gnu/packages/python-web.scm (python-tinycss2): Update to 1.1.0.
[source]: Remove patch.
[arguments]: Remove field, disabling tests.
[native-inputs]: Remove field.
---
gnu/local.mk | 1 -
.../patches/python-tinycss2-flake8-compat.patch | 36 ----------------------
gnu/packages/python-web.scm | 17 ++++------
3 files changed, 6 insertions(+), 48 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 0fd2f78..4ea3d50 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1537,7 +1537,6 @@ dist_patch_DATA =
\
%D%/packages/patches/python-robotframework-source-date-epoch.patch \
%D%/packages/patches/python-shouldbe-0.1.2-cpy3.8.patch \
%D%/packages/patches/python2-subprocess32-disable-input-test.patch \
- %D%/packages/patches/python-tinycss2-flake8-compat.patch \
%D%/packages/patches/python-unittest2-python3-compat.patch \
%D%/packages/patches/python-unittest2-remove-argparse.patch \
%D%/packages/patches/python-waitress-fix-tests.patch \
diff --git a/gnu/packages/patches/python-tinycss2-flake8-compat.patch
b/gnu/packages/patches/python-tinycss2-flake8-compat.patch
deleted file mode 100644
index a66eb42..0000000
--- a/gnu/packages/patches/python-tinycss2-flake8-compat.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Fix test failure that occurs with recent versions of Flake8.
-
-Taken from upstream:
-https://github.com/Kozea/tinycss2/commit/6556604fb98c2153412384d6f0f705db2da1aa60
-
-diff --git a/tinycss2/css-parsing-tests/make_color3_hsl.py
b/tinycss2/css-parsing-tests/make_color3_hsl.py
-index d1fd3a6..56fda0c 100644
---- a/tinycss2/css-parsing-tests/make_color3_hsl.py
-+++ b/tinycss2/css-parsing-tests/make_color3_hsl.py
-@@ -8,16 +8,17 @@ def trim(s):
- print('[')
- print(',\n'.join(
- '"hsl%s(%s, %s%%, %s%%%s)", [%s, %s, %s, %s]' % (
-- ('a' if a is not None else '', h,
-- trim(str(s / 10.)), trim(str(l / 10.)),
-- ', %s' % a if a is not None else '') +
-+ ('a' if alpha is not None else '', hue,
-+ trim(str(saturation / 10.)), trim(str(light / 10.)),
-+ ', %s' % alpha if alpha is not None else '') +
- tuple(trim(str(round(v, 10)))
-- for v in colorsys.hls_to_rgb(h / 360., l / 1000., s / 1000.)) +
-- (a if a is not None else 1,)
-+ for v in colorsys.hls_to_rgb(
-+ hue / 360., light / 1000., saturation / 1000.)) +
-+ (alpha if alpha is not None else 1,)
- )
-- for a in [None, 1, .2, 0]
-- for l in range(0, 1001, 125)
-- for s in range(0, 1001, 125)
-- for h in range(0, 360, 30)
-+ for alpha in [None, 1, .2, 0]
-+ for light in range(0, 1001, 125)
-+ for saturation in range(0, 1001, 125)
-+ for hue in range(0, 360, 30)
- ))
- print(']')
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 894bd00..107f579 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4433,26 +4433,21 @@ library to create slugs from unicode strings while
keeping it DRY.")
(define-public python-tinycss2
(package
(name "python-tinycss2")
- (version "1.0.2")
+ (version "1.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "tinycss2" version))
- (patches (search-patches "python-tinycss2-flake8-compat.patch"))
(sha256
- (base32 "1kw84y09lggji4krkc58jyhsfj31w8npwhznr7lf19d0zbix09v4"))))
+ (base32 "12p16k8x8ig51gpfcwz3k3kxpxrwwkn41a1avdgvh3nn8hqarp7v"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda _ (invoke "pytest"))))))
+ ;; Test data is missing from the PyPI archive, and the build system is
+ ;; based on Flit, which wants an unmaintained and unpackaged
+ ;; python-pytoml dependency.
+ `(#:tests? #f))
(propagated-inputs
`(("python-webencodings" ,python-webencodings)))
- (native-inputs
- `(("python-pytest-flake8" ,python-pytest-flake8)
- ("python-pytest-isort" ,python-pytest-isort)
- ("python-pytest-runner" ,python-pytest-runner)))
(home-page "https://tinycss2.readthedocs.io/")
(synopsis "Low-level CSS parser for Python")
(description "@code{tinycss2} can parse strings, return Python objects
- 04/15: gnu: Add python-iniconfig., (continued)
- 04/15: gnu: Add python-iniconfig., guix-commits, 2020/11/29
- 02/15: gnu: python-cairocffi: Fix indentation., guix-commits, 2020/11/29
- 01/15: gnu: python-html5lib: Update to 1.1., guix-commits, 2020/11/29
- 05/15: gnu: Add python-py-next., guix-commits, 2020/11/29
- 03/15: gnu: python-cairocffi: Update to 1.2.0., guix-commits, 2020/11/29
- 06/15: gnu: python-typing-extensions: Update to 3.7.4.3., guix-commits, 2020/11/29
- 09/15: gnu: python-mypy: Update to 0.790., guix-commits, 2020/11/29
- 14/15: gnu: python-pyphen: Update to 0.10.0., guix-commits, 2020/11/29
- 07/15: gnu: Add python-pytest-6., guix-commits, 2020/11/29
- 15/15: gnu: weasyprint: Update to 52.1., guix-commits, 2020/11/29
- 13/15: gnu: python-tinycss2: Update to 1.1.0.,
guix-commits <=
- 08/15: gnu: python-pytest-xdist: Update to 2.1.0., guix-commits, 2020/11/29
- 10/15: gnu: python-cairosvg: Update to 2.5.0., guix-commits, 2020/11/29
- 11/15: gnu: python-cssselect2: Update to 0.4.1., guix-commits, 2020/11/29
- 12/15: gnu: python-flit: Update to 3.0.0., guix-commits, 2020/11/29