File python-pgpy.spec of Package python-pgpy

#
# spec file for package python-pgpy
#
# Copyright (c) 2023 Florian "sp1rit" <packaging@sp1rit.anonaddy.me>
# Copyright (c) 2023 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/
#

%define upstream PGPy
%define upstream_lower pgpy
%define skip_python2 1

Name:           python-%{upstream_lower}
Version:        0.6.0
Release:        0
Summary:        Pretty Good Privacy for Python 
License:        BSD-3-Clause
URL:            https://github.com/SecurityInnovation/%{upstream}
Source0:        https://github.com/SecurityInnovation/%{upstream}/releases/download/v%{version}/%{upstream}-%{version}.tar.gz
BuildRequires:  %{python_module cryptography}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module pyasn1}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildArch:      noarch
Requires:       python-cryptography
Requires:       python-pyasn1
%python_subpackages

%description
PGPy is a Python library for implementing Pretty Good Privacy into
Python programs, conforming to the OpenPGP specification per
RFC 4880.

%prep
%autosetup -p1 -n %{upstream}-%{version}

%build
%pyproject_wheel

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

%check
%pytest

%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/%{upstream_lower}
%{python_sitelib}/%{upstream}-%{version}*-info

%changelog
openSUSE Build Service is sponsored by