[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#47906] [PATCH 09/22] gnu: Add python-tinycss.
From: |
Vinicius Monego |
Subject: |
[bug#47906] [PATCH 09/22] gnu: Add python-tinycss. |
Date: |
Tue, 20 Apr 2021 05:22:33 +0000 |
* gnu/packages/python-web.scm (python-tinycss): New variable.
---
This package is deprecated by the author but it's required by qstylizer.
gnu/packages/python-web.scm | 45 ++++++++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 1e57165509..8b9c223a41 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -37,7 +37,7 @@
;;; Copyright © 2020 Holger Peters <holger.peters@posteo.de>
;;; Copyright © 2020 Noisytoot <noisytoot@gmail.com>
;;; Copyright © 2020 Edouard Klein <edk@beaver-labs.com>
-;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
@@ -4557,6 +4557,49 @@ library to create slugs from unicode strings while
keeping it DRY.")
(description "Generate complex HTML+JS pages with Python")
(license license:expat)))
+(define-public python-tinycss
+ (package
+ (name "python-tinycss")
+ (version "0.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "tinycss" version))
+ (sha256
+ (base32 "0vkifr595h28ymkjhrswwf0bm23lhznh5f44xyp7x7jy1ssnyc0j"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-flake8-isort
+ ;; Flake8 and isort tests fail.
+ (lambda _
+ (substitute* "setup.cfg" ((" --flake8 --isort") ""))
+ #t))
+ (replace 'check
+ (lambda _
+ ;; Disable failing test.
+ (invoke "python" "-m" "pytest" "-k"
+ "not test_speedups"))))))
+ (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://tinycss.readthedocs.io/")
+ (synopsis "Complete yet simple CSS parser for Python")
+ (description
+ "@code{tinycss} is a complete yet simple CSS parser for Python. It
+supports the full syntax and error handling for CSS 2.1 as well as some CSS 3
+modules:
+
+@itemize
+@item CSS Color 3
+@item CSS Fonts 3
+@item CSS Paged Media 3
+@end itemize")
+ (license license:bsd-3)))
+
(define-public python-tinycss2
(package
(name "python-tinycss2")
--
2.31.1
- [bug#47906] [PATCH 00/22] Add Spyder, Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 01/22] gnu: Add python-spyder-kernels., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 02/22] gnu: Add python-textdistance., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 03/22] gnu: Add python-three-merge., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 04/22] gnu: Add python-pyls-black., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 05/22] gnu: Add python-pyls-spyder., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 07/22] gnu: python-qtconsole: Update to 5.0.3., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 06/22] gnu: python-watchdog: Update to 1.0.2., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 09/22] gnu: Add python-tinycss.,
Vinicius Monego <=
- [bug#47906] [PATCH 11/22] gnu: python-language-server: Enable tests., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 12/22] gnu: Add python-pytest-qt., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 13/22] gnu: Add python-qtawesome., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 10/22] gnu: Add python-qstylizer., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 08/22] gnu: python-qtconsole: Enable tests., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 14/22] gnu: Add python-qtsass., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 16/22] gnu: Add python-easyprocess., Vinicius Monego, 2021/04/20
- [bug#47906] [PATCH 15/22] gnu: python-qdarkstyle: Update to 3.0.2., Vinicius Monego, 2021/04/20