14
0
Files
python-pyperclip/python-pyperclip.spec
Dirk Mueller 62283b74dd - update to 1.11.0:
* Fix pyproject
  * Pyperclip now "stringifies" all data types by passing it to str() (or
    globals()['__builtins__'].unicode on Python 2), so passing [1, 2, 3] would
  * shutil.which() replaces the custom code (except in 2.7 and below which doesn't
  * Remove waitForPaste() and waitForNewPaste() functions, these aren't something
  + no changes available
- Update to upstream version 1.5.24
- First initial package of version 1.5.11

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyperclip?expand=0&rev=32
2025-10-10 21:00:35 +00:00

65 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pyperclip
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-pyperclip
Version: 1.11.0
Release: 0
Summary: A clipboard module for Python
License: BSD-3-Clause
URL: https://github.com/asweigart/pyperclip
Source0: https://files.pythonhosted.org/packages/source/p/pyperclip/pyperclip-%{version}.tar.gz
# PATCH-FIX-UPSTREAM tests are broken with 1.9.0 release https://github.com/asweigart/pyperclip/issues/263
Patch: tests.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: xclip
Requires: xsel
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
A clipboard module for Python. It only handles plain text.
%prep
%autosetup -p1 -n pyperclip-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE.txt
%{python_sitelib}/pyperclip
%{python_sitelib}/pyperclip-%{version}.dist-info
%changelog