commit python-evdev for openSUSE:Factory

2020-01-13 Thread root
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2020-01-13 22:21:18

Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and  /work/SRC/openSUSE:Factory/.python-evdev.new.6675 (New)


Package is "python-evdev"

Mon Jan 13 22:21:18 2020 rev:6 rq:763808 version:1.3.0

Changes:

--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes
2019-05-14 13:43:48.636696303 +0200
+++ /work/SRC/openSUSE:Factory/.python-evdev.new.6675/python-evdev.changes  
2020-01-13 22:21:25.534515480 +0100
@@ -1,0 +2,16 @@
+Sun Jan 12 16:55:08 UTC 2020 - Matthias Bach 
+
+- Update to 1.3.0
+  * Fix build on 32bit arches with 64bit time_t.
+  * Add functionality to query device properties. See
+InputDevice.input_props and the input_props argument to Uinput.
+  * KeyEvent received an allow_unknown constructor argument, which
+determines what will happen when an event code cannot be mapped
+to a keycode. The default and behavior so far has been to raise
+KeyError. If set to True, the keycode will be set to the event
+code formatted as a hex number.
+  * Add InputDevice.set_absinfo() and InputDevice.absinfo().
+  * Instruct the asyncio event loop to stop monitoring the fd of
+the input device when the device is closed.
+
+---

Old:

  v1.2.0.tar.gz

New:

  v1.3.0.tar.gz



Other differences:
--
++ python-evdev.spec ++
--- /var/tmp/diff_new_pack.A3YoHQ/_old  2020-01-13 22:21:28.662516930 +0100
+++ /var/tmp/diff_new_pack.A3YoHQ/_new  2020-01-13 22:21:28.686516942 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-evdev
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,13 +19,14 @@
 %define modname evdev
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-evdev
-Version:1.2.0
+Version:1.3.0
 Release:0
 Summary:Python bindings to the Linux input handling subsystem
 License:BSD-3-Clause
 Group:  Development/Languages/Python
 URL:https://github.com/gvalkov/python-evdev
-Source: https://github.com/gvalkov/%{name}/archive/v%{version}.tar.gz
+# Source needs to be pulled form Github as the source distribution on PyPI 
lacks the test directory
+Source: 
https://github.com/gvalkov/python-evdev/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}

++ v1.2.0.tar.gz -> v1.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.2.0/.gitignore 
new/python-evdev-1.3.0/.gitignore
--- old/python-evdev-1.2.0/.gitignore   2019-04-07 17:40:25.0 +0200
+++ new/python-evdev-1.3.0/.gitignore   2020-01-12 00:41:29.0 +0100
@@ -13,6 +13,7 @@
 TAGS
 evdev/*.so
 evdev/ecodes.c
+evdev/iprops.c
 docs/_build
 .#*
 __pycache__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.2.0/docs/changelog.rst 
new/python-evdev-1.3.0/docs/changelog.rst
--- old/python-evdev-1.2.0/docs/changelog.rst   2019-04-07 17:40:25.0 
+0200
+++ new/python-evdev-1.3.0/docs/changelog.rst   2020-01-12 00:41:29.0 
+0100
@@ -1,6 +1,25 @@
 Changelog
 -
 
+1.3.0 (Jan 12, 2020)
+
+
+- Fix build on 32bit arches with 64bit time_t
+
+- Add functionality to query device properties. See ``InputDevice.input_props``
+  and the ``input_props`` argument to ``Uinput``.
+
+- ``KeyEvent`` received an ``allow_unknown`` constructor argument, which
+  determines what will happen when an event code cannot be mapped to a keycode.
+  The default and behavior so far has been to raise ``KeyError``. If set to
+  ``True``, the keycode will be set to the event code formatted as a hex 
number.
+
+- Add ``InputDevice.set_absinfo()`` and ``InputDevice.absinfo()``.
+
+- Instruct the asyncio event loop to stop monitoring the fd of the input device
+  when the device is closed.
+
+
 1.2.0 (Apr 7, 2019)
 
 
@@ -134,7 +153,7 @@
 0.6.1 (Jun 04, 2016)
 
 
-- Dissable tty echoing while evtest is running.
+- Disable tty echoing while evtest is running.
 - Allow evtest to listen to more than one devices.
 
 - The setup.py script now allows the location of the input header files to be
diff -urN '--exclude=CVS' '--exclude=.cvsignore' 

commit python-evdev for openSUSE:Factory

2019-05-14 Thread root
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2019-05-14 13:43:47

Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and  /work/SRC/openSUSE:Factory/.python-evdev.new.5148 (New)


Package is "python-evdev"

Tue May 14 13:43:47 2019 rev:5 rq:702767 version:1.2.0

Changes:

--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes
2019-03-01 16:50:05.909738567 +0100
+++ /work/SRC/openSUSE:Factory/.python-evdev.new.5148/python-evdev.changes  
2019-05-14 13:43:48.636696303 +0200
@@ -1,0 +2,7 @@
+Tue May 14 07:09:23 UTC 2019 - Ondřej Súkup 
+
+- update to 1.2.0
+  * Add UInput support for the resolution parameter in AbsInfo
+  * Vendor and product identifiers can be greater or equal to 0x8000
+
+---

Old:

  v1.1.2.tar.gz

New:

  v1.2.0.tar.gz



Other differences:
--
++ python-evdev.spec ++
--- /var/tmp/diff_new_pack.iLFOdi/_old  2019-05-14 13:43:50.164699535 +0200
+++ /var/tmp/diff_new_pack.iLFOdi/_new  2019-05-14 13:43:50.168699544 +0200
@@ -19,7 +19,7 @@
 %define modname evdev
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-evdev
-Version:1.1.2
+Version:1.2.0
 Release:0
 Summary:Python bindings to the Linux input handling subsystem
 License:BSD-3-Clause

++ v1.1.2.tar.gz -> v1.2.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.1.2/docs/changelog.rst 
new/python-evdev-1.2.0/docs/changelog.rst
--- old/python-evdev-1.1.2/docs/changelog.rst   2018-09-01 19:45:42.0 
+0200
+++ new/python-evdev-1.2.0/docs/changelog.rst   2019-04-07 17:40:25.0 
+0200
@@ -1,6 +1,17 @@
 Changelog
 -
 
+1.2.0 (Apr 7, 2019)
+
+
+- Add UInput support for the resolution parameter in AbsInfo. This brings
+  support for the new method of uinput device setup, which was `introduced in
+  Linux 4.5`_ (thanks to `@LinusCDE`_).
+
+- Vendor and product identifiers can be greater or equal to `0x8000` (thanks
+  `@ivaradi`_).
+
+
 1.1.2 (Sep 1, 2018)
 
 
@@ -12,7 +23,7 @@
 1.1.0 (Aug 27, 2018)
 
 
-- Add support for handling force-feedback effect uploads (many thanks to 
`@ndreys`).
+- Add support for handling force-feedback effect uploads (many thanks to 
`@ndreys`_).
 
 - Fix typo preventing ff effects that need left coefficients from working.
 
@@ -352,7 +363,10 @@
 .. _`@forsenonlhaimaisentito`: https://github.com/forsenonlhaimaisentito
 .. _`@paulo-raca`: https://github.com/paulo-raca
 .. _`@ndreys`: https://github.com/ndreys
+.. _`@LinusCDE`: https://github.com/gvalkov/python-evdev/pulls/LinusCDE
+.. _`ivaradi`: https://github.com/gvalkov/python-evdev/pull/104
 
+.. _`introduced in Linux 4.5`: 
https://github.com/torvalds/linux/commit/052876f8e5aec887d22c4d06e54aa5531ffcec75
 .. _issue21121: http://bugs.python.org/issue21121
 .. _`#63`:  https://github.com/gvalkov/python-evdev/issues/63
 .. _`#63`:  https://github.com/gvalkov/python-evdev/issues/67
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.1.2/docs/conf.py 
new/python-evdev-1.2.0/docs/conf.py
--- old/python-evdev-1.1.2/docs/conf.py 2018-09-01 19:45:42.0 +0200
+++ new/python-evdev-1.2.0/docs/conf.py 2019-04-07 17:40:25.0 +0200
@@ -60,7 +60,7 @@
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-release = '1.1.2'
+release = '1.2.0'
 
 # The short X.Y version.
 version = release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.1.2/evdev/input.c 
new/python-evdev-1.2.0/evdev/input.c
--- old/python-evdev-1.1.2/evdev/input.c2018-09-01 19:45:42.0 
+0200
+++ new/python-evdev-1.2.0/evdev/input.c2019-04-07 17:40:25.0 
+0200
@@ -250,7 +250,10 @@
 ret = PyArg_ParseTuple(args, "i", );
 if (!ret) return NULL;
 
-ioctl(fd, EVIOCGREP, );
+ret = ioctl(fd, EVIOCGREP, );
+if (ret == -1)
+return NULL;
+
 return Py_BuildValue("(ii)", rep[0], rep[1]);
 }
 
@@ -265,6 +268,9 @@
 if (!ret) return NULL;
 
 ret = ioctl(fd, EVIOCSREP, );
+if (ret == -1)
+return NULL;
+
 return Py_BuildValue("i", ret);
 }
 
@@ -277,6 +283,9 @@
 if (!ret) return NULL;
 
 ret = ioctl(fd, EVIOCGVERSION, );
+if (ret == -1)
+return NULL;
+
 return Py_BuildValue("i", res);
 }
 
@@ -338,6 +347,9 @@
 break;
 }
 
+if (ret == -1)
+return NULL;
+
 PyObject* res = PyList_New(0);
 

commit python-evdev for openSUSE:Factory

2019-03-01 Thread root
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2019-03-01 16:50:01

Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and  /work/SRC/openSUSE:Factory/.python-evdev.new.28833 (New)


Package is "python-evdev"

Fri Mar  1 16:50:01 2019 rev:4 rq:680458 version:1.1.2

Changes:

--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes
2018-08-29 12:26:25.275556810 +0200
+++ /work/SRC/openSUSE:Factory/.python-evdev.new.28833/python-evdev.changes 
2019-03-01 16:50:05.909738567 +0100
@@ -1,0 +2,8 @@
+Fri Mar  1 11:01:57 UTC 2019 - Tomáš Chvátal 
+
+- Update to 1.1.2:
+  * Fix handling of absinfo capabilities
+  * Fix invalid example
+  * Check if FF_MAX_EFFECTS is defined
+
+---

Old:

  _service
  v1.1.0.tar.gz

New:

  v1.1.2.tar.gz



Other differences:
--
++ python-evdev.spec ++
--- /var/tmp/diff_new_pack.THR8Gi/_old  2019-03-01 16:50:06.929738182 +0100
+++ /var/tmp/diff_new_pack.THR8Gi/_new  2019-03-01 16:50:06.929738182 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-evdev
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,26 +12,25 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %define modname evdev
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-evdev
-Version:1.1.0
+Version:1.1.2
 Release:0
 Summary:Python bindings to the Linux input handling subsystem
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Url:https://github.com/gvalkov/python-evdev
+URL:https://github.com/gvalkov/python-evdev
 Source: https://github.com/gvalkov/%{name}/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-
 %python_subpackages
 
 %description
@@ -53,13 +52,13 @@
 
 %install
 %python_install
-%python_expand %fdupes %buildroot/%$python_sitearch
+%python_expand %fdupes %{buildroot}/%{$python_sitearch}
 
 %check
 %python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} 
py.test-%{$python_version} tests -k 'not test_uinput'
 
-%files %python_files
-%python_sitearch/evdev*
+%files %{python_files}
+%{python_sitearch}/evdev*
 %license LICENSE
 
 %changelog

++ v1.1.0.tar.gz -> v1.1.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.1.0/docs/changelog.rst 
new/python-evdev-1.1.2/docs/changelog.rst
--- old/python-evdev-1.1.0/docs/changelog.rst   2018-08-27 21:11:25.0 
+0200
+++ new/python-evdev-1.1.2/docs/changelog.rst   2018-09-01 19:45:42.0 
+0200
@@ -1,6 +1,14 @@
 Changelog
 -
 
+1.1.2 (Sep 1, 2018)
+
+
+- Fix installation on kernels <= 4.4.
+
+- Fix uinput creation ignoring absinfo settings.
+
+
 1.1.0 (Aug 27, 2018)
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.1.0/docs/conf.py 
new/python-evdev-1.1.2/docs/conf.py
--- old/python-evdev-1.1.0/docs/conf.py 2018-08-27 21:11:25.0 +0200
+++ new/python-evdev-1.1.2/docs/conf.py 2018-09-01 19:45:42.0 +0200
@@ -60,7 +60,7 @@
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-release = '1.1.0'
+release = '1.1.2'
 
 # The short X.Y version.
 version = release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.1.0/docs/tutorial.rst 
new/python-evdev-1.1.2/docs/tutorial.rst
--- old/python-evdev-1.1.0/docs/tutorial.rst2018-08-27 21:11:25.0 
+0200
+++ new/python-evdev-1.1.2/docs/tutorial.rst2018-09-01 19:45:42.0 
+0200
@@ -325,7 +325,7 @@
 ... (e.ABS_X, AbsInfo(value=0, min=0, max=255,
 ...   fuzz=0, flat=0, resolution=0)),
 ... (e.ABS_Y, AbsInfo(0, 0, 255, 0, 0, 0)),
-... (e.ABS_MT_POSITION_X, (0, 255, 128, 0)) ]
+... (e.ABS_MT_POSITION_X, (0, 128, 255, 0)) ]
 ... }
 
 >>> ui = UInput(cap, name='example-device', version=0x3)
diff -urN 

commit python-evdev for openSUSE:Factory

2018-08-29 Thread root
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2018-08-29 12:26:24

Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and  /work/SRC/openSUSE:Factory/.python-evdev.new (New)


Package is "python-evdev"

Wed Aug 29 12:26:24 2018 rev:3 rq:631923 version:1.1.0

Changes:

--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes
2018-06-29 22:34:44.886087855 +0200
+++ /work/SRC/openSUSE:Factory/.python-evdev.new/python-evdev.changes   
2018-08-29 12:26:25.275556810 +0200
@@ -1,0 +2,9 @@
+Tue Aug 28 08:00:44 UTC 2018 - ma...@marix.org
+
+- Update to version 1.1.0
+  * Add support for handling force-feedback effect uploads.
+  * Fix typo preventing force-feedback effects that need left
+coefficients from working.
+- Add _service file to fetch source from Git.
+
+---

Old:

  v1.0.0.tar.gz

New:

  _service
  v1.1.0.tar.gz



Other differences:
--
++ python-evdev.spec ++
--- /var/tmp/diff_new_pack.yIr3H0/_old  2018-08-29 12:26:25.879558134 +0200
+++ /var/tmp/diff_new_pack.yIr3H0/_new  2018-08-29 12:26:25.883558143 +0200
@@ -19,7 +19,7 @@
 %define modname evdev
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-evdev
-Version:1.0.0
+Version:1.1.0
 Release:0
 Summary:Python bindings to the Linux input handling subsystem
 License:BSD-3-Clause

++ _service ++

  
https://github.com/gvalkov/python-evdev.git
git
v1.1.0
@PARENT_TAG@
v(.*)
  
  

++ v1.0.0.tar.gz -> v1.1.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.0.0/docs/changelog.rst 
new/python-evdev-1.1.0/docs/changelog.rst
--- old/python-evdev-1.0.0/docs/changelog.rst   2018-06-02 00:42:45.0 
+0200
+++ new/python-evdev-1.1.0/docs/changelog.rst   2018-08-27 21:11:25.0 
+0200
@@ -1,6 +1,14 @@
 Changelog
 -
 
+1.1.0 (Aug 27, 2018)
+
+
+- Add support for handling force-feedback effect uploads (many thanks to 
`@ndreys`).
+
+- Fix typo preventing ff effects that need left coefficients from working.
+
+
 1.0.0 (Jun 02, 2018)
 
 
@@ -335,6 +343,7 @@
 .. _`@isia`:https://github.com/isia
 .. _`@forsenonlhaimaisentito`: https://github.com/forsenonlhaimaisentito
 .. _`@paulo-raca`: https://github.com/paulo-raca
+.. _`@ndreys`: https://github.com/ndreys
 
 .. _issue21121: http://bugs.python.org/issue21121
 .. _`#63`:  https://github.com/gvalkov/python-evdev/issues/63
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.0.0/docs/conf.py 
new/python-evdev-1.1.0/docs/conf.py
--- old/python-evdev-1.0.0/docs/conf.py 2018-06-02 00:42:45.0 +0200
+++ new/python-evdev-1.1.0/docs/conf.py 2018-08-27 21:11:25.0 +0200
@@ -60,7 +60,7 @@
 # built documents.
 #
 # The full version, including alpha/beta/rc tags.
-release = '1.0.0'
+release = '1.1.0'
 
 # The short X.Y version.
 version = release
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.0.0/docs/install.rst 
new/python-evdev-1.1.0/docs/install.rst
--- old/python-evdev-1.0.0/docs/install.rst 2018-06-02 00:42:45.0 
+0200
+++ new/python-evdev-1.1.0/docs/install.rst 2018-08-27 21:11:25.0 
+0200
@@ -10,7 +10,10 @@
 https://www.archlinux.org/packages/extra/x86_64/python-evdev/;>
   
 
-https://packages.ubuntu.com/artful/python-evdev;>
+https://packages.debian.org/search?searchon=names=python-evdev;>
+  
+
+https://packages.ubuntu.com/search?suite=default=all=any=python-evdev=names;>
   
 
 https://apps.fedoraproject.org/packages/python3-evdev;>
@@ -24,7 +27,7 @@
 --!>
 
 
-Consult the relevant documentation of your OS package manager for installation 
instructions.
+Consult the documentation of your OS package manager for installation 
instructions.
 
 
 From source
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-evdev-1.0.0/docs/tutorial.rst 
new/python-evdev-1.1.0/docs/tutorial.rst
--- old/python-evdev-1.0.0/docs/tutorial.rst2018-06-02 00:42:45.0 
+0200
+++ new/python-evdev-1.1.0/docs/tutorial.rst2018-08-27 21:11:25.0 
+0200
@@ -362,3 +362,75 @@
 
 
 .. _`async/await`:  https://docs.python.org/3/library/asyncio-task.html
+
+Create ``uinput`` device capable of recieving FF-effects
+
+
+::
+
+import asyncio
+from evdev import 

commit python-evdev for openSUSE:Factory

2018-06-29 Thread root
Hello community,

here is the log from the commit of package python-evdev for openSUSE:Factory 
checked in at 2018-06-29 22:34:40

Comparing /work/SRC/openSUSE:Factory/python-evdev (Old)
 and  /work/SRC/openSUSE:Factory/.python-evdev.new (New)


Package is "python-evdev"

Fri Jun 29 22:34:40 2018 rev:2 rq:619208 version:1.0.0

Changes:

--- /work/SRC/openSUSE:Factory/python-evdev/python-evdev.changes
2018-01-31 19:53:37.136657831 +0100
+++ /work/SRC/openSUSE:Factory/.python-evdev.new/python-evdev.changes   
2018-06-29 22:34:44.886087855 +0200
@@ -1,0 +2,21 @@
+Tue Jun  5 20:06:40 UTC 2018 - ma...@marix.org
+
+- Run tests during packaging.
+  * This runs only those tests which do not require /dev/uinput.
+- Changed to source taken directly from Git instead of PyPI.
+
+---
+Mon Jun  4 20:07:15 UTC 2018 - ma...@marix.org
+
+- Update to version 1.0.0
+  * Fixed asyncio support in Python 3.5+.
+  * Fixed handling of missing data.
+  * Fixed device comparison.
+  * Deprecated the InputDevice.fn attribute in favour of
+InputDevice.path
+  * Add a context manager for grabbing access to a device -
+InputDevice.grab_context.
+  * Add the InputDevice.uniq attribute, which contains the unique
+identifier of the device.
+
+---

Old:

  evdev-0.7.0.tar.gz

New:

  v1.0.0.tar.gz



Other differences:
--
++ python-evdev.spec ++
--- /var/tmp/diff_new_pack.hkdifu/_old  2018-06-29 22:34:45.946086935 +0200
+++ /var/tmp/diff_new_pack.hkdifu/_new  2018-06-29 22:34:45.946086935 +0200
@@ -16,17 +16,18 @@
 #
 
 
+%define modname evdev
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-evdev
-Version:0.7.0
+Version:1.0.0
 Release:0
 Summary:Python bindings to the Linux input handling subsystem
 License:BSD-3-Clause
 Group:  Development/Languages/Python
-Url:https://pypi.python.org/pypi/evdev
-#Git-Clone: https://github.com/gvalkov/python-evdev
-Source: 
https://files.pythonhosted.org/packages/source/e/evdev/evdev-%version.tar.gz
+Url:https://github.com/gvalkov/python-evdev
+Source: https://github.com/gvalkov/%{name}/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -45,7 +46,7 @@
 subsystem.
 
 %prep
-%setup -q -n evdev-%version
+%setup -q
 
 %build
 %python_build
@@ -54,6 +55,9 @@
 %python_install
 %python_expand %fdupes %buildroot/%$python_sitearch
 
+%check
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} 
py.test-%{$python_version} tests -k 'not test_uinput'
+
 %files %python_files
 %python_sitearch/evdev*
 %license LICENSE