3 %bcond_without tests # unit tests
5 Summary: Low-level CSS parser for Python
10 Source0: https://files.pythonhosted.org/packages/source/t/tinycss2/tinycss2-%{version}.tar.gz
11 # Source0-md5: 7caf513c4e87fc2449dcfbf407a8416f
12 Patch0: disable-flake8-isort-for-pytest.patch
13 Patch1: disable-missing-data-tests.patch
14 URL: https://pypi.python.org/pypi/tinycss2/
15 # required to run the tests
17 BuildRequires: python3-pytest
18 BuildRequires: python3-pytest-cov
19 BuildRequires: python3-pytest-runner
20 BuildRequires: python3-setuptools
21 BuildRequires: python3-webencodings >= 0.4
26 tinycss2 is a modern, low-level CSS parser for Python. tinycss2 is a
27 rewrite of tinycss with a simpler API, based on the more recent CSS
28 Syntax Level 3 specification.
31 %setup -n tinycss2-%{version}
39 rm -rf $RPM_BUILD_ROOT
43 %{__python3} -m pytest -v
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{py3_sitescriptdir}/tinycss2
53 %{py3_sitescriptdir}/tinycss2-%{version}-py*.egg-info