2019-09-20 09:56:46 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pydantic
|
|
|
|
#
|
2021-01-08 13:36:08 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-09-20 09:56:46 +00:00
|
|
|
# Copyright (c) 2019, Martin Hauke <mardnh@gmx.de>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-09-20 09:57:08 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python2 1
|
|
|
|
Name: python-pydantic
|
2021-05-13 11:44:17 +00:00
|
|
|
Version: 1.8.2
|
2019-09-20 09:56:46 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Data validation and settings management using python type hinting
|
2019-09-20 09:57:08 +00:00
|
|
|
License: MIT
|
2019-09-20 09:56:46 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-09-20 09:57:08 +00:00
|
|
|
URL: https://github.com/samuelcolvin/pydantic
|
2020-08-03 15:45:24 +00:00
|
|
|
Source: https://github.com/samuelcolvin/pydantic/archive/v%{version}.tar.gz#/pydantic-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module email_validator >= 1.0.3}
|
2021-01-08 13:36:08 +00:00
|
|
|
BuildRequires: %{python_module pytest-mock}
|
2020-08-03 15:45:24 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module python-dotenv >= 0.10.4}
|
2019-09-20 09:57:08 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2021-05-13 11:44:17 +00:00
|
|
|
BuildRequires: %{python_module typing_extensions >= 3.7.4.3}
|
2019-09-20 09:56:46 +00:00
|
|
|
BuildRequires: fdupes
|
2019-09-20 09:57:08 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2021-01-08 13:36:08 +00:00
|
|
|
BuildRequires: (python3-dataclasses if python3-base < 3.7)
|
|
|
|
BuildRequires: (python36-dataclasses if python36-base)
|
2020-12-07 02:13:16 +00:00
|
|
|
%if 0%{?python_version_nodots} == 36
|
|
|
|
Requires: python-dataclasses
|
|
|
|
%endif
|
2021-05-13 11:44:17 +00:00
|
|
|
Requires: python-typing_extensions >= 3.7.4.3
|
2020-08-03 15:45:24 +00:00
|
|
|
Suggests: python-email_validator >= 1.0.3
|
|
|
|
Suggests: python-python-dotenv >= 0.10.4
|
2019-09-20 09:56:46 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Data validation and settings management using Python type hinting.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pydantic-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2020-03-19 13:37:43 +00:00
|
|
|
%doc README.md HISTORY.md
|
2020-12-07 02:13:16 +00:00
|
|
|
%{python_sitelib}/pydantic
|
|
|
|
%{python_sitelib}/pydantic-%{version}*-info
|
2019-09-20 09:56:46 +00:00
|
|
|
|
|
|
|
%changelog
|