15
0
forked from pool/python-cepa

Accepting request 1142130 from Application:ERP:GNUHealth:4.4

OBS-URL: https://build.opensuse.org/request/show/1142130
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cepa?expand=0&rev=8
This commit is contained in:
2024-01-30 14:31:59 +00:00
committed by Git OBS Bridge
parent 6ef5938ada
commit a663d09fed
2 changed files with 26 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cepa
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -16,8 +16,10 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
# tests do not work with python312. Hopefully we can go back to stem before python312 is mandatory
# https://github.com/onionshare/onionshare/issues/1851
%define skip_python312 1
Name: python-cepa
Version: 1.8.4
Release: 0
@@ -29,20 +31,21 @@ Source: https://files.pythonhosted.org/packages/source/c/cepa/cepa-%{ver
# Replace use of the external mock module with the one in stdlib.
Patch0: mock.patch
Patch1: use-fullargspec.patch
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
#testing aarch64
# SECTION test
BuildRequires: %{python_module pyflakes}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module pycodestyle}
#/testing aarch64
Requires: python-cryptography
# /SECTION
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
Recommends: python-cryptography
Provides: python-stem = %version-%release
Obsoletes: python-stem < %version-%release
@@ -56,16 +59,18 @@ With it you can use Tor's control protocol to script against the Tor process, or
%prep
%autosetup -p1 -n cepa-%{version}
sed -i '/"setuptools >= 65.4.1"/d' setup.py
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/tor-prompt
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export PYTHONDONTWRITEBYTECODE=1
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
$python run_tests.py -u
}
@@ -80,6 +85,7 @@ $python run_tests.py -u
%doc README.md
%license LICENSE
%python_alternative %{_bindir}/tor-prompt
%{python_sitelib}/*
%{python_sitelib}/stem
%{python_sitelib}/cepa-%{version}.dist-info
%changelog