mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
python310Packages.evdev: add changelog to meta
- add pythonImportsCheck - disable on older Python releases
This commit is contained in:
parent
6356b18b6f
commit
0339a7d875
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user