cca4513
%global srcname pynetbox
cca4513
cca4513
Name:           python-%{srcname}
5143f82
Version:        6.2.0
1322d45
Release:        %autorelease
cca4513
Summary:        Python API client library for Netbox
cca4513
cca4513
License:        ASL 2.0
cca4513
URL:            https://github.com/digitalocean/pynetbox
cca4513
Source:         %{pypi_source}
cca4513
cca4513
BuildArch:      noarch
cca4513
cca4513
%global _description \
cca4513
%{summary}.
cca4513
cca4513
%description %{_description}
cca4513
cca4513
%package     -n python3-%{srcname}
cca4513
Summary:        %{summary}
cca4513
%{?python_provide:%python_provide python3-%{srcname}}
cca4513
BuildRequires:  python3-devel
60b7cfd
BuildRequires:  python3dist(setuptools)
60b7cfd
BuildRequires:  python3dist(setuptools-scm)
dade529
BuildRequires:  python3dist(pytest)
1c703b5
BuildRequires:  (python3dist(requests) >= 2.20 with python3dist(requests) < 3)
1c703b5
BuildRequires:  (python3dist(six) >= 1 with python3dist(six) < 2)
cca4513
cca4513
%description -n python3-%{srcname} %{_description}
cca4513
cca4513
Python 3 version.
cca4513
cca4513
%prep
72ad880
%autosetup -n %{srcname}-%{version} -p1
cca4513
rm -vr *.egg-info
cca4513
cca4513
%build
cca4513
%py3_build
cca4513
cca4513
%install
cca4513
%py3_install
cca4513
cca4513
%check
0674ba5
%pytest -vv tests/test_*.py tests/unit
cca4513
cca4513
%files -n python3-%{srcname}
cca4513
%license LICENSE
cca4513
%doc README.md CHANGELOG.md
cca4513
%{python3_sitelib}/%{srcname}/
cca4513
%{python3_sitelib}/%{srcname}-*.egg-info/
cca4513
cca4513
%changelog
1322d45
%autochangelog