1
0
forked from pool/python-pynput

Accepting request 1083542 from home:fcrozat:branches:home:simotek:base

new package, to be used for streamdeck-ui

OBS-URL: https://build.opensuse.org/request/show/1083542
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pynput?expand=0&rev=1
This commit is contained in:
Matej Cepl 2023-04-29 22:08:40 +00:00 committed by Git OBS Bridge
commit b28e9f5ed7
7 changed files with 142 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

12
no-setuptools-lint.patch Normal file
View File

@ -0,0 +1,12 @@
Index: pynput-1.7.3/setup.py
===================================================================
--- pynput-1.7.3.orig/setup.py
+++ pynput-1.7.3/setup.py
@@ -23,7 +23,6 @@ RUNTIME_PACKAGES = [
#: Additional requirements used during setup
SETUP_PACKAGES = [
- 'setuptools-lint >=0.5',
'sphinx >=1.3.1']
#: Packages requires for different environments

3
pynput-1.7.6.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3a5726546da54116b687785d38b1db56997ce1d28e53e8d22fc656d8b92e533c
size 79501

18
python-pynput.changes Normal file
View File

@ -0,0 +1,18 @@
-------------------------------------------------------------------
Fri Apr 28 13:43:30 UTC 2023 - Frederic Crozat <fcrozat@suse.com>
- Update to 1.7.6
- Ship license as part of generated packages.
- Do not try to build on python2 and simplify Suggests list.
- Only build on primary python.
-------------------------------------------------------------------
Mon Aug 2 08:18:36 UTC 2021 - Simon Lees <sflees@suse.de>
- Update to 1.7.3 and prep for factory inclusion
* Add no-setuptools-lint.patch from suggestion on #opensuse-python
-------------------------------------------------------------------
Wed Apr 3 17:05:43 UTC 2019 - Lars Vogdt <lars@linux-schulserver.de>
- initial version 1.4.2

66
python-pynput.spec Normal file
View File

@ -0,0 +1,66 @@
#
# spec file for package python-pynput
#
# Copyright (c) 2021 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/
#
%global skip_python2 1
%global pythons %{primary_python}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pynput
Version: 1.7.6
Release: 0
License: LGPL-3.0
Summary: Monitor and control user input devices
Url: https://github.com/moses-palmer/pynput
Source: https://files.pythonhosted.org/packages/source/p/pynput/pynput-%{version}.tar.gz
Patch0: unicode.patch
Patch1: no-setuptools-lint.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: python3-Sphinx >= 1.3.1
# SECTION test requirements
BuildRequires: %{python_module six}
# /SECTION
BuildRequires: fdupes
Requires: python-six
Suggests: python-evdev >= 1.3
Suggests: python-python-xlib >= 0.17
Suggests: python-pyobjc-framework-Quartz >= 7.0
BuildArch: noarch
%python_subpackages
%description
Monitor and control user input devices
%prep
%setup -q -n pynput-%{version}
%autopatch -p1
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license COPYING.LGPL
%doc README.rst
%{python_sitelib}/*
%changelog

19
unicode.patch Normal file
View File

@ -0,0 +1,19 @@
Index: pynput-1.7.6/lib/pynput/_info.py
===================================================================
--- pynput-1.7.6.orig/lib/pynput/_info.py 2022-01-01 20:57:22.000000000 +0100
+++ pynput-1.7.6/lib/pynput/_info.py 2023-04-23 18:22:28.036346734 +0200
@@ -1,6 +1,6 @@
# coding=utf-8
# pystray
-# Copyright (C) 2015-2022 Moses Palmér
+# Copyright (C) 2015-2022 Moses Palmer
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
@@ -15,5 +15,5 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-__author__ = u'Moses Palmér'
+__author__ = u'Moses Palmer'
__version__ = (1, 7, 6)