File python-unicrypto.spec of Package python-unicrypto

#
# spec file for package python-unicrypto
#
# Copyright (c) 2024, Martin Hauke <mardnh@gmx.de>
#
# 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-unicrypto
Version:        0.0.10
Release:        0
Summary:        Unified interface for cryptographic libraries
License:        MIT
URL:            https://github.com/skelsec/
Source:         https://github.com/skelsec/unicrypto/archive/refs/tags/%{version}.tar.gz#/unicrypto-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module cryptography}
BuildRequires:  %{python_module pycryptodome}
BuildRequires:  %{python_module pycryptodomex}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module python-mbedtls}
## /SECTION
BuildRequires:  fdupes
Requires:       python-pycryptodome
Requires:       python-pycryptodomex
Requires:       python-cryptography
Requires:       python-python-mbedtls
BuildArch:      noarch
%python_subpackages

%description
Unicrypto is a library that provides a unified interface to a variety of
cryptographic algorithms. With it, developers can easily integrate
encryption into their applications, ensuring the security of data and
communications.

The module also allows developers to have access to a wide range of
encryption algorithms, including AES, DES, RC4 and TDES, among others.
This library simplifies the process of implementing security in
applications by providing a single consistent API for different
algorithms, regardless of the underlying library used. 

%prep
%autosetup -p1 -n unicrypto-%{version}
find unicrypto -name "*.py" -exec sed -i '/^#!\//, 1d' {} \;

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_expand rm -Rv  %{buildroot}%{$python_sitelib}/tests

%check
%pytest

%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/unicrypto
%{python_sitelib}/unicrypto-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by