python310Packages.evdev: add changelog to meta

- add pythonImportsCheck
- disable on older Python releases
This commit is contained in:
Fabian Affolter 2023-01-30 11:48:17 +01:00
parent 6356b18b6f
commit 0339a7d875

View File

@ -1,25 +1,41 @@
{ lib, buildPythonPackage, fetchPypi, linuxHeaders }:
{ lib
, buildPythonPackage
, fetchPypi
, linuxHeaders
, pythonOlder
}:
buildPythonPackage rec {
pname = "evdev";
version = "1.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-7PoBtchPfoxs7TNnrJUoj0PNhO+/1919DNv8DRjIemo=";
hash = "sha256-7PoBtchPfoxs7TNnrJUoj0PNhO+/1919DNv8DRjIemo=";
};
buildInputs = [ linuxHeaders ];
buildInputs = [
linuxHeaders
];
patchPhase = ''
substituteInPlace setup.py --replace /usr/include/linux ${linuxHeaders}/include/linux
substituteInPlace setup.py \
--replace /usr/include/linux ${linuxHeaders}/include/linux
'';
doCheck = false;
pythonImportsCheck = [
"evdev"
];
meta = with lib; {
description = "Provides bindings to the generic input event interface in Linux";
homepage = "https://pythonhosted.org/evdev";
homepage = "https://python-evdev.readthedocs.io/";
changelog = "https://github.com/gvalkov/python-evdev/blob/v${version}/docs/changelog.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ goibhniu ];
platforms = platforms.linux;