summaryrefslogtreecommitdiff
path: root/python-pydantic.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-02-04 09:21:14 +0000
committerCoprDistGit <infra@openeuler.org>2025-02-04 09:21:14 +0000
commit0cc0feb5bad7d4b78b9a213bea9aa026f6cb28dc (patch)
tree5c3a51d5d43561229e2633f961722d5d84ed3274 /python-pydantic.spec
parente778f54a9ceeaf5961eae57ba30deef2b7aa4ca3 (diff)
automatic import of python-pydanticopeneuler24.03_LTS_SP1openeuler24.03_LTS
Diffstat (limited to 'python-pydantic.spec')
-rw-r--r--python-pydantic.spec64
1 files changed, 64 insertions, 0 deletions
diff --git a/python-pydantic.spec b/python-pydantic.spec
new file mode 100644
index 0000000..95e2541
--- /dev/null
+++ b/python-pydantic.spec
@@ -0,0 +1,64 @@
+Name: python-pydantic
+Version: 1.10.21
+Release: 1
+Summary: Data validation using Python type hinting
+
+License: MIT
+URL: https://github.com/pydantic/pydantic
+Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+Patch0: backport-Fix-test_assert_raises_validation_error-with-pytest-8.patch
+BuildArch: noarch
+
+BuildRequires: python3-devel
+# For check phase
+BuildRequires: python3-mypy
+BuildRequires: python3dist(pytest)
+BuildRequires: python3dist(pytest-mock)
+BuildRequires: python3dist(hypothesis)
+BuildRequires: python%{python3_pkgversion}-pip
+BuildRequires: python%{python3_pkgversion}-wheel
+BuildRequires: python%{python3_pkgversion}-hatchling
+
+%description
+Data validation and settings management using python type hinting.
+
+%package -n python3-pydantic
+Summary: %{summary}
+%{?python_provide:%python_provide python3-pydantic}
+
+Requires: python3-email-validator >= 1.0.3
+Requires: python3-ujson >= 1.35
+
+%description -n python3-pydantic
+Data validation and settings management using python type hinting.
+
+%prep
+%autosetup -n pydantic-%{version} -p1
+
+%build
+%pyproject_build
+
+# Docs are in MarkDown, and should be added when mkdocs is packaged.
+
+%install
+%pyproject_install
+
+%check
+pytest -Wdefault --ignore=tests/mypy/test_mypy.py
+
+%files -n python3-pydantic
+%license LICENSE
+%doc README.md
+%{python3_sitelib}/pydantic
+%{python3_sitelib}/pydantic*.dist-info/
+
+%changelog
+* Sat Jan 25 2025 Funda Wang <fundawang@yeah.net> - 1.10.21-1
+- update to 1.10.21
+
+* Tue Jul 02 2024 zouzhimin <zouzhimin@kylinos.cn> - 1.10.14-1
+- Update package to version 1.10.14
+- fix CVE-2024-3772
+
+* Mon Jun 26 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 1.10.9-1
+- Initial package.