[packages/python3-pydantic] Initial

arekm arekm at pld-linux.org
Sun Mar 15 17:20:42 CET 2026


commit a625b4dade20637e76bc1098eed59edd7d538545
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 17:20:27 2026 +0100

    Initial

 python3-pydantic.spec | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)
---
diff --git a/python3-pydantic.spec b/python3-pydantic.spec
new file mode 100644
index 0000000..0fe898d
--- /dev/null
+++ b/python3-pydantic.spec
@@ -0,0 +1,73 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (require many optional dependencies)
+
+%define		module	pydantic
+Summary:	Data validation using Python type hints
+Summary(pl.UTF-8):	Walidacja danych z użyciem podpowiedzi typów Pythona
+Name:		python3-%{module}
+Version:	2.12.5
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pydantic/
+Source0:	https://files.pythonhosted.org/packages/source/p/pydantic/%{module}-%{version}.tar.gz
+# Source0-md5:	beb5176b58bf266a874ab4d085cdb766
+URL:		https://docs.pydantic.dev
+BuildRequires:	python3-build
+BuildRequires:	python3-hatch-fancy-pypi-readme >= 22.5.0
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+%if %{with tests}
+BuildRequires:	python3-annotated_types >= 0.6.0
+BuildRequires:	python3-pydantic_core >= 2.41.5
+BuildRequires:	python3-pytest
+BuildRequires:	python3-typing_extensions >= 4.14.1
+BuildRequires:	python3-typing_inspection >= 0.4.2
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-annotated_types >= 0.6.0
+Requires:	python3-modules >= 1:3.9
+Requires:	python3-pydantic_core >= 2.41.5
+Requires:	python3-typing_extensions >= 4.14.1
+Requires:	python3-typing_inspection >= 0.4.2
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Data validation using Python type hints. Pydantic uses Python type
+annotations to validate that data conforms to the expected types and
+constraints, providing user-friendly errors when data is invalid.
+
+%description -l pl.UTF-8
+Walidacja danych z użyciem podpowiedzi typów Pythona. Pydantic używa
+adnotacji typów Pythona do sprawdzania, czy dane odpowiadają
+oczekiwanym typom i ograniczeniom, dostarczając przyjazne dla
+użytkownika komunikaty o błędach w przypadku nieprawidłowych danych.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/pydantic
+%{py3_sitescriptdir}/pydantic-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pydantic.git/commitdiff/a625b4dade20637e76bc1098eed59edd7d538545



More information about the pld-cvs-commit mailing list