[packages/python3-coincidence] - new

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


commit dffdb913aee7b6e0a58e706d7afec7f09f6969c7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Oct 20 21:23:58 2023 +0200

    - new

 coincidence-deps.patch   | 11 +++++++++
 python3-coincidence.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)
---
diff --git a/python3-coincidence.spec b/python3-coincidence.spec
new file mode 100644
index 0000000..d50ba2d
--- /dev/null
+++ b/python3-coincidence.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (not included in sdist)
+
+Summary:	Helper functions for pytest
+Summary(pl.UTF-8):	Funkcje pomocnicze dla pytesta
+Name:		python3-coincidence
+Version:	0.6.5
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/coincidence/
+Source0:	https://files.pythonhosted.org/packages/source/c/coincidence/coincidence-%{version}.tar.gz
+# Source0-md5:	0d1d08cdbef6030dd91c44219ec77892
+Patch0:		coincidence-deps.patch
+URL:		https://pypi.org/project/coincidence/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools >= 1:61
+%if %{with tests}
+BuildRequires:	python3-domdf-python-tools >= 2.8.0
+BuildRequires:	python3-pytest >= 6.2.0
+BuildRequires:	python3-pytest-regressions >= 2.0.2
+%if "%{_ver_lt '%{py3_ver}' '3.8'}" == "1"
+BuildRequires:	python3-typing-extensions >= 3.7.4.3
+%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
+Helper functions for pytest.
+
+%description -l pl.UTF-8
+Funkcje pomocnicze dla pytesta.
+
+%prep
+%setup -q -n coincidence-%{version}
+%patch0 -p1
+
+cat >setup.py <<EOF
+from setuptools import setup
+setup()
+EOF
+
+%build
+%py3_build
+
+%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}/coincidence
+%{py3_sitescriptdir}/coincidence-%{version}-py*.egg-info
diff --git a/coincidence-deps.patch b/coincidence-deps.patch
new file mode 100644
index 0000000..b50f9d3
--- /dev/null
+++ b/coincidence-deps.patch
@@ -0,0 +1,11 @@
+--- coincidence-0.6.5/pyproject.toml.orig	2023-04-12 00:50:28.706720000 +0200
++++ coincidence-0.6.5/pyproject.toml	2023-10-20 20:11:32.059831150 +0200
+@@ -14,7 +14,7 @@ dependencies = [
+     "domdf-python-tools>=2.8.0",
+     "pytest>=6.2.0",
+     "pytest-regressions>=2.0.2",
+-    "typing-extensions>=3.7.4.3",
++    "typing-extensions>=3.7.4.3; python_version<'3.8'",
+ ]
+ classifiers = [
+     "Development Status :: 4 - Beta",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-coincidence.git/commitdiff/dffdb913aee7b6e0a58e706d7afec7f09f6969c7



More information about the pld-cvs-commit mailing list