60 lines
1.5 KiB
RPMSpec
60 lines
1.5 KiB
RPMSpec
Name: python-pydantic
|
|
Version: 1.10.9
|
|
Release: 2
|
|
Summary: Data validation using Python type hinting
|
|
|
|
License: MIT
|
|
URL: https://github.com/samuelcolvin/pydantic
|
|
Source0: https://github.com/samuelcolvin/pydantic/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
Patch0: 0001-Bug-fix-for-forward-refs-in-generics.patch
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3dist(setuptools)
|
|
# For check phase
|
|
BuildRequires: python3-mypy
|
|
BuildRequires: python3dist(pytest)
|
|
BuildRequires: python3dist(hypothesis)
|
|
|
|
%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 -p1 -n pydantic-%{version}
|
|
# Remove bundled egg-info
|
|
rm -rf pydantic.egg-info
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
# Docs are in MarkDown, and should be added when mkdocs is packaged.
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
%{__python3} setup.py test
|
|
|
|
%files -n python3-pydantic
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python3_sitelib}/pydantic
|
|
%{python3_sitelib}/pydantic-%{version}-py%{python3_version}.egg-info
|
|
|
|
%changelog
|
|
* Tue May 21 2024 dongjiao <dongjiao@kylinos.cn> - 1.10.9-2
|
|
- Bug fix for forward refs in generics
|
|
|
|
* Mon Jun 26 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 1.10.9-1
|
|
- Initial package.
|