blob: 95e254111c696bd391c1b25751283d6d1412321f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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.
|