Blob Blame History Raw
%global srcname pynetbox

Name:           python-%{srcname}
Version:        6.2.0
Release:        %autorelease
Summary:        Python API client library for Netbox

License:        ASL 2.0
Source:         %{pypi_source}

BuildArch:      noarch

%global _description \

%description %{_description}

%package     -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(pytest)
BuildRequires:  (python3dist(requests) >= 2.20 with python3dist(requests) < 3)
BuildRequires:  (python3dist(six) >= 1 with python3dist(six) < 2)

%description -n python3-%{srcname} %{_description}

Python 3 version.

%autosetup -n %{srcname}-%{version} -p1
rm -vr *.egg-info



%pytest -vv tests/test_*.py tests/unit

%files -n python3-%{srcname}
%license LICENSE