[packages/python3-domdf-python-tools] - new

qboosh qboosh at pld-linux.org
Fri Oct 20 21:20:23 CEST 2023


commit f14b29eb3639105f56172baacce0e18cdec49a7f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 20 21:22:14 2023 +0200

    - new

 domdf_python_tools-deps.patch   |  8 +++++
 python3-domdf-python-tools.spec | 72 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)
---
diff --git a/python3-domdf-python-tools.spec b/python3-domdf-python-tools.spec
new file mode 100644
index 0000000..5a48051
--- /dev/null
+++ b/python3-domdf-python-tools.spec
@@ -0,0 +1,72 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (some files missing in sdist)
+
+Summary:	Helpful functions for Python
+Summary(pl.UTF-8):	Przydatne funkcje dla Pythona
+Name:		python3-domdf-python-tools
+Version:	3.6.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/domdf-python-tools/
+Source0:	https://files.pythonhosted.org/packages/source/d/domdf-python-tools/domdf_python_tools-%{version}.tar.gz
+# Source0-md5:	4e729ee6addc3d6bfeb72c934340a7e0
+Patch0:		domdf_python_tools-deps.patch
+URL:		https://pypi.org/project/domdf-python-tools/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools >= 1:40.6.0
+%if %{with tests}
+BuildRequires:	python3-click
+BuildRequires:	python3-coincidence
+BuildRequires:	python3-faker
+%if "%{_ver_lt '%{py3_ver}' '3.9'}" == "1"
+BuildRequires:	python3-importlib_metadata >= 3.6.0
+%endif
+%if "%{_ver_lt '%{py3_ver}' '3.7'}" == "1"
+BuildRequires:	python3-importlib_resources >= 3.0.0
+%endif
+BuildRequires:	python3-natsort >= 7.0.1
+BuildRequires:	python3-pytest
+%if "%{_ver_lt '%{py3_ver}' '3.8'}" == "1"
+BuildRequires:	python3-typing-extensions >= 3.7.4.1
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.749
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Helpful functions for Python.
+
+%description -l pl.UTF-8
+Przydatne funkcje dla Pythona.
+
+%prep
+%setup -q -n domdf_python_tools-%{version}
+%patch0 -p1
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/domdf_python_tools
+%{py3_sitescriptdir}/domdf_python_tools-%{version}-py*.egg-info
diff --git a/domdf_python_tools-deps.patch b/domdf_python_tools-deps.patch
new file mode 100644
index 0000000..2ecaeb2
--- /dev/null
+++ b/domdf_python_tools-deps.patch
@@ -0,0 +1,8 @@
+--- domdf_python_tools-3.6.1/requirements.txt.orig	2023-04-14 13:35:21.000000000 +0200
++++ domdf_python_tools-3.6.1/requirements.txt	2023-10-19 20:32:19.171143934 +0200
+@@ -1,4 +1,4 @@
+ importlib-metadata>=3.6.0; python_version < "3.9"
+ importlib-resources>=3.0.0; python_version < "3.7"
+ natsort>=7.0.1
+-typing-extensions>=3.7.4.1
++typing-extensions>=3.7.4.1; python_version < "3.8"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-domdf-python-tools.git/commitdiff/f14b29eb3639105f56172baacce0e18cdec49a7f



More information about the pld-cvs-commit mailing list