File python-magic-wormhole.spec of Package python-magic-wormhole
#
# spec file for package python-magic-wormhole
#
# 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/
#
%define modname magic-wormhole
Name: python-magic-wormhole
Version: 0.13.0
Release: 0
Summary: Tool for transferring files through a secure channel
License: MIT
URL: https://github.com/warner/magic-wormhole
Source: https://files.pythonhosted.org/packages/source/m/magic-wormhole/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module Automat}
BuildRequires: %{python_module PyNaCl}
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module attrs >= 19.2.0}
BuildRequires: %{python_module autobahn}
BuildRequires: %{python_module click}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module humanize}
BuildRequires: %{python_module magic-wormhole-mailbox-server}
BuildRequires: %{python_module magic-wormhole-transit-relay}
BuildRequires: %{python_module noiseprotocol}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module spake2 >= 0.8}
BuildRequires: %{python_module tqdm >= 4.13.0}
BuildRequires: %{python_module txtorcon >= 18.0.2}
BuildRequires: %{python_module versioneer}
BuildRequires: %{python_module wheel}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Automat
Requires: python-PyNaCl
Requires: python-Twisted
Requires: python-attrs >= 19.0.2
Requires: python-autobahn
Requires: python-click
Requires: python-cryptography
Requires: python-humanize
Requires: python-six
Requires: python-spake2 >= 0.8
Requires: python-tqdm >= 4.13.0
Requires: python-txtorcon >= 18.0.2
Requires(post): update-alternatives
Requires(preun):update-alternatives
Suggests: python-magic-wormhole-mailbox-server
Suggests: python-magic-wormhole-transit-relay
Suggests: python-noiseprotocol
BuildArch: noarch
%python_subpackages
%description
This package provides a library and a command-line tool named wormhole,
which makes it possible to get arbitrary-sized files and directories from
one computer to another. The two endpoints are identified by using identical
"wormhole codes": in general, the sending machine generates and displays
the code, which must then be typed into the receiving machine.
%prep
%setup -q -n %{modname}-%{version}
# replace vendored old versioneer by system version with python 3.12 support
# gh#magic-wormhole/magic-wormhole#507
rm versioneer.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/wormhole
%check
%pytest src/wormhole/test -k 'not test_welcome'
%post
%python_install_alternative wormhole
%postun
%python_uninstall_alternative wormhole
%files %{python_files}
%license LICENSE
%doc NEWS.md README.md
%python_alternative %{_bindir}/wormhole
%{python_sitelib}/wormhole
%{python_sitelib}/magic_wormhole-%{version}.dist-info
%changelog