File python-pyosmocom.spec of Package python-pyosmocom

#
# spec file for package python-pyosmocom
#
# 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-pyosmocom
Version:        0.0.9
Release:        0
Summary:        Python implementation of core osmocom utilities / protocols
License:        GPL-2.0-or-later
URL:            https://osmocom.org/projects/pyosmocom/wiki
#Git-Clone:     https://gitea.osmocom.org/osmocom/pyosmocom
Source:         https://files.pythonhosted.org/packages/source/p/pyosmocom/pyosmocom-%{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 construct >= 2.9.51}
BuildRequires:  %{python_module gsm0338}
BuildRequires:  %{python_module pytest}
# /SECTION
BuildRequires:  fdupes
Requires:       python-construct >= 2.9.51
Requires:       python-gsm0338
BuildArch:      noarch
%python_subpackages

%description
Python implementation of core osmocom utilities / protocols.

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

%build
%pyproject_wheel

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

%check
%pytest

%files %{python_files}
%doc README.md
%license COPYING
%{python_sitelib}/osmocom
%{python_sitelib}/pyosmocom-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by