File python-squishy.spec of Package python-squishy

#
# spec file for package python-Squishy
#
# 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-squishy
Version:        0.0.1.dev583+g009c463
Release:        0
Summary:        SCSI Multitool and Torii HDL Library
License:        BSD-3-Clause
URL:            https://github.com/squishy-scsi/squishy
Source:         squishy-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module setuptools_scm}
BuildRequires:  %{python_module wheel}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module arrow}
BuildRequires:  %{python_module construct >= 2.10.67}
BuildRequires:  %{python_module Jinja2}
BuildRequires:  %{python_module libusb1 >= 1.8.1}
BuildRequires:  %{python_module platformdirs >= 4.2.1}
BuildRequires:  %{python_module rich}
BuildRequires:  %{python_module sol-usb >= 0.4.0}
BuildRequires:  %{python_module torii >= 0.6.0}
BuildRequires:  %{python_module usb-construct < 1.0}
# /SECTION
BuildRequires:  fdupes
Requires:       python-arrow
Requires:       python-construct >= 2.10.67
Requires:       python-Jinja2
Requires:       python-libusb1 >= 1.8.1
Requires:       python-platformdirs >= 4.2.1
Requires:       python-rich
Requires:       python-sol-usb >= 0.4.0
Requires:       python-torii >= 0.6.0
Requires:       python-usb-construct < 1.0
Requires:       yosys
Requires:       yosys-abc
Requires:       nextpnr
Requires:       nextpnr-ecp5
Requires:       nextpnr-ice40
Requires:       icestorm
Suggests:       python-nox
Suggests:       python-setuptools_scm
Suggests:       python-meson
BuildArch:      noarch
%python_subpackages

%description
SCSI Multitool and Torii HDL Library

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

%build
%pyproject_wheel

%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/squishy
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check

%post
%python_install_alternative squishy

%postun
%python_uninstall_alternative squishy

%files %{python_files}
%python_alternative %{_bindir}/squishy
%{python_sitelib}/squishy
%{python_sitelib}/Squishy-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by