Blob Blame History Raw
%global modname boxsdk

Name:               python-boxsdk
Version:            2.14.0
Release:            1%{?dist}
Summary:            Python wrapper for the Box API


License:            ASL 2.0
URL:                https://github.com/box/box-python-sdk
Source0:            %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
BuildArch:          noarch

%description
%{summary}.

%package -n python%{python3_pkgversion}-%{modname}
Summary:            %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}}
BuildRequires:      python%{python3_pkgversion}-devel
BuildRequires:      python%{python3_pkgversion}-setuptools
BuildRequires:      python%{python3_pkgversion}-requests
BuildRequires:      python%{python3_pkgversion}-six
BuildRequires:      python%{python3_pkgversion}-wrapt
BuildRequires:      python%{python3_pkgversion}-requests-toolbelt
BuildRequires:      python%{python3_pkgversion}-attrs
# Tests don't pass at the moment.
# https://github.com/box/box-python-sdk/issues/494
#BuildRequires:      python%%{python3_pkgversion}-pytest
#BuildRequires:      python%%{python3_pkgversion}-bottle
#BuildRequires:      python%%{python3_pkgversion}-redis
#BuildRequires:      python%%{python3_pkgversion}-mock
#BuildRequires:      python%%{python3_pkgversion}-sqlalchemy
#BuildRequires:      python%%{python3_pkgversion}-jsonpatch
#BuildRequires:      python%%{python3_pkgversion}-cryptography
#BuildRequires:      python%%{python3_pkgversion}-pytz
#BuildRequires:      python%%{python3_pkgversion}-jwt

%description -n python%{python3_pkgversion}-%{modname}
%{summary}.

Python %{python3_version} version.

%prep
%autosetup -n box-python-sdk-%{version}

%build
%py3_build

%install
%py3_install

#%%check
#pytest-3

%files -n python%{python3_pkgversion}-%{modname}
%doc *.rst
%license LICENSE
%{python3_sitelib}/boxsdk/
%{python3_sitelib}/%{modname}-*.egg-info/

%changelog
* Wed Dec 08 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.14.0-1
- 2.14.0

* Thu Sep 30 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.13.0-1
- 2.13.0

* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Wed Jun 16 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.12.1-1
- 2.12.1

* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.12.0-2
- Rebuilt for Python 3.10

* Fri Apr 16 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.12.0-1
- 2.12.0

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Jan 11 2021 Gwyn Ciesla <gwync@protonmail.com> - 2.11.0-1
- 2.11.0

* Fri Oct 02 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.10.0-1
- 2.10.0

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jun 23 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.9.0-1
- 2.9.0

* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 2.8.0-2
- Rebuilt for Python 3.9

* Fri Apr 24 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.8.0-1
- 2.8.0

* Thu Mar 26 2020 Gwyn Ciesla <gwync@protonmail.com> - 2.7.1-1
- Initial build