15
0
forked from pool/python-stripe
Files
python-stripe/python-stripe.spec
Steve Kowalik 93a67a8ad7 - Drop patch also-skip-streaming.patch:
* No longer needed.
- Add BuildRequires on new stripe-mock service, and run it during the
  check phase.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-stripe?expand=0&rev=8
2024-01-19 03:30:22 +00:00

70 lines
2.0 KiB
RPMSpec

#
# spec file for package python-stripe
#
# Copyright (c) 2024 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-stripe
Version: 7.12.0
Release: 0
Summary: Python bindings for the Stripe API
License: MIT
URL: https://github.com/stripe/stripe-python
Source: https://files.pythonhosted.org/packages/source/s/stripe/stripe-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#stripe/stripe-python#1195
Patch0: use-sys-executable.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 6.0}
BuildRequires: %{python_module pytest-mock >= 2.0}
BuildRequires: %{python_module requests >= 2.20}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing_extensions >= 4.5.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: stripe-mock
Requires: python-requests >= 2.20
Requires: python-typing_extensions >= 4.5.0
Conflicts: python-stripe-api
BuildArch: noarch
%python_subpackages
%description
Python bindings for the Stripe API.
%prep
%autosetup -p1 -n stripe-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
stripe-mock &
pid=$!
%pytest
kill $pid
%files %{python_files}
%doc CHANGELOG.md README.md examples/
%license LICENSE
%{python_sitelib}/stripe
%{python_sitelib}/stripe-%{version}.dist-info
%changelog