[packages/python3-fastjsonschema] - updated to 2.21.2
qboosh
qboosh at pld-linux.org
Sun Nov 16 19:42:55 CET 2025
commit 5f27547eb431c4e49f2d5ef5c20edd19c551570d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 16 19:42:51 2025 +0100
- updated to 2.21.2
python3-fastjsonschema.spec | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/python3-fastjsonschema.spec b/python3-fastjsonschema.spec
index 772de4b..424a672 100644
--- a/python3-fastjsonschema.spec
+++ b/python3-fastjsonschema.spec
@@ -1,16 +1,25 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
Summary: Fastest Python implementation of JSON schema
+Summary(pl.UTF-8): Najszybsza pythonowa implementacja schematów JSON
Name: python3-fastjsonschema
-Version: 2.21.1
+Version: 2.21.2
Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/fastjsonschema/
Source0: https://files.pythonhosted.org/packages/source/f/fastjsonschema/fastjsonschema-%{version}.tar.gz
-# Source0-md5: c83f862ba5c43775673ffe665a3533d6
+# Source0-md5: 41294eb5e6b0663644251255cf1770d9
URL: https://github.com/horejsek/python-fastjsonschema
BuildRequires: python3 >= 1:3.3
BuildRequires: python3-modules >= 1:3.3
BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-benchmark
+%endif
BuildRequires: rpmbuild(macros) >= 1.714
Requires: python3-modules >= 1:3.3
BuildArch: noarch
@@ -19,12 +28,24 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Fastest Python implementation of JSON schema.
+%description -l pl.UTF-8
+Najszybsza pythonowa implementacja schematów JSON.
+
%prep
%setup -q -n fastjsonschema-%{version}
+# eats tons of memory
+%{__rm} -r tests/examples/issue-109
+
%build
%py3_build
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_benchmark.plugin \
+%{__python3} -m pytest tests
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
@@ -35,7 +56,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc LICENSE README.rst
+%doc AUTHORS LICENSE README.rst
%dir %{py3_sitescriptdir}/fastjsonschema
%{py3_sitescriptdir}/fastjsonschema/*.py
%{py3_sitescriptdir}/fastjsonschema/__pycache__
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-fastjsonschema.git/commitdiff/5f27547eb431c4e49f2d5ef5c20edd19c551570d
More information about the pld-cvs-commit
mailing list