File braintree.spec of Package python-braintree

#
# spec file for package python-braintree
#
# Copyright (c) 2021 SUSE LLC
#
# 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.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-braintree
Version:        4.11.0
Release:        0
Summary:        Braintree Python Library
License:        MIT
URL:            https://developers.braintreepayments.com/python/sdk/server/overview
Source:         https://files.pythonhosted.org/packages/source/b/braintree/braintree-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  python3-setuptools
# SECTION test requirements
## BuildRequires:  python3-requests >= 0.11.1
## BuildRequires:  python3-pytest
# /SECTION
BuildRequires:  fdupes
Requires:       python3-requests >= 0.11.1
BuildArch:      noarch

%description
The Braintree Python SDK provides integration access to the Braintree Gateway.

%prep
%setup -q -n braintree-%{version}

%build
%python3_build

%install
%python3_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

## %check
## need to look into this...
## export PYTHONPATH=%{buildroot}%{python3_sitelib}
## pytest -v -rs braintree/test

%files 
%doc README.md
%{python3_sitelib}/*

%changelog
openSUSE Build Service is sponsored by