python-python-dbusmock/python-python-dbusmock.spec
Dirk Mueller 4c340e9452 - update to 0.30.2:
* bluez5: Fix invalid arguments to PairDevice
- update to 0.30.1:
  * bluez: Clean up static default properties, re-drop
    PairDevice() `class_` parameter
- update to 0.30.0:
  * api: Add pytest support and helpers
  * api: Factor the server spawning into a new SpawnedMock object
  * cli: Add support for running custom commands on the mock
    environment
- update to 0.29.1:
  * spec: Update License: to SPDX format
- update to 0.29.0:
  * Support loading templates from XDG_DATA_DIRS
  * iio-sensors-proxy: Throw proper D-Bus errors instead of
    Python Exception
- update to 0.28.7:
  * blue5-obex template: Fix OBEX PullAll
  * power_profiles template: Fix Actions property type
  * README: Explain container tests and how to debug them
- update to 0.28.6:
  * Fix generated _version.py in release tarball
- update to 0.28.4:
  * setup.py: Fix ModuleNotFoundError
  * ofono template: Fix conversion to f-strings (Debian #1015286)
  * Ship FMF tests in release tarballs
- update to 0.28.3:
  * Bring back dbusmock.__version__
- update to 0.28.2:
  * Dynamically compute version with setuptools-scm

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-dbusmock?expand=0&rev=26
2024-01-21 17:40:55 +00:00

74 lines
2.3 KiB
RPMSpec

#
# spec file for package python-python-dbusmock
#
# 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-python-dbusmock
Version: 0.30.2
Release: 0
Summary: Python library for creating mock D-Bus objects
License: LGPL-3.0-or-later
URL: https://github.com/martinpitt/python-dbusmock
Source: https://files.pythonhosted.org/packages/source/p/python-dbusmock/python-dbusmock-%{version}.tar.gz
BuildRequires: %{python_module dbus-python}
BuildRequires: %{python_module gobject}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: dbus-1-daemon
BuildRequires: fdupes
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: upower
BuildRequires: pkgconfig(gobject-introspection-1.0)
Requires: dbus-1-x11
Requires: python-dbus-python
Requires: python-gobject
Provides: python-dbusmock = %{version}
BuildArch: noarch
%if %python_version_nodots < 37
Requires: python-dataclasses
%endif
%python_subpackages
%description
With this program/Python library, one can create mock objects on D-Bus.
This is useful for writing tests for software which talks to D-Bus services
such as upower, systemd, logind, gnome-session or others, and it is hard
(or impossible without root privileges) to set the state of the real services
to what one may expect in tests.
%prep
%autosetup -p1 -n python-dbusmock-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license COPYING
%doc NEWS README.md
%{python_sitelib}/dbusmock
%{python_sitelib}/python_dbusmock-%{version}*-info
%changelog