[packages/python3-pywatchman] - new

qboosh qboosh at pld-linux.org
Sat Feb 21 20:34:28 CET 2026


commit 2d57f0e20e91792f1bc00866d4eacb384121d2ed
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 21 20:34:22 2026 +0100

    - new

 python3-pywatchman.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++
 pywatchman-tests.patch  | 11 +++++++++
 2 files changed, 74 insertions(+)
---
diff --git a/python3-pywatchman.spec b/python3-pywatchman.spec
new file mode 100644
index 0000000..afe06e6
--- /dev/null
+++ b/python3-pywatchman.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Watchman client for Python
+Summary(pl.UTF-8):	Klient Watchmana dla Pythona
+Name:		python3-pywatchman
+Version:	3.0.0
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pywatchman/
+Source0:	https://files.pythonhosted.org/packages/source/p/pywatchman/pywatchman-%{version}.tar.gz
+# Source0-md5:	f2f2b754a7d69dc74e987e1fdf5adf65
+Patch0:		pywatchman-tests.patch
+URL:		https://pypi.org/project/pywatchman/
+BuildRequires:	python3-devel >= 1:3.8
+BuildRequires:	python3-setuptools >= 1:61.0
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.8
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains the Watchman client for Python.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera klienta Watchmana dla Pythona.
+
+%prep
+%setup -q -n pywatchman-%{version}
+%patch -P0 -p1
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(readlink -f build-3/lib.*) \
+%{__python3} tests/tests.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+# don't package sources
+%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/pywatchman/*.[ch]
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/watchman-make
+%attr(755,root,root) %{_bindir}/watchman-replicate-subscription
+%attr(755,root,root) %{_bindir}/watchman-wait
+%dir %{py3_sitedir}/pywatchman
+%{py3_sitedir}/pywatchman/*.py
+%{py3_sitedir}/pywatchman/bser.cpython-*.so
+%{py3_sitedir}/pywatchman/__pycache__
+%{py3_sitedir}/pywatchman-%{version}-py*.egg-info
diff --git a/pywatchman-tests.patch b/pywatchman-tests.patch
new file mode 100644
index 0000000..c69bcfc
--- /dev/null
+++ b/pywatchman-tests.patch
@@ -0,0 +1,11 @@
+test_big_string_lengths generate size overflow on 32-bit archs
+--- pywatchman-3.0.0/tests/tests.py.orig	2025-05-30 01:42:39.000000000 +0200
++++ pywatchman-3.0.0/tests/tests.py	2026-02-21 20:29:45.325490645 +0100
+@@ -424,6 +424,7 @@ class TestBSERDump(unittest.TestCase):
+         self.roundtrip(b"a" * ((1 << 24) + 0))
+         self.roundtrip(b"a" * ((1 << 24) + 1))
+ 
++    @unittest.skip
+     def test_big_string_lengths(self):
+         # These tests take a couple dozen seconds with the Python
+         # implementation of bser. Keep them in a separate test so we can run
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pywatchman.git/commitdiff/2d57f0e20e91792f1bc00866d4eacb384121d2ed



More information about the pld-cvs-commit mailing list