2022-10-30 15:09:59 +00:00
|
|
|
{ python3
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
|
|
pname = "hid-tools";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.4";
|
2022-10-30 15:09:59 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "libevdev";
|
|
|
|
repo = "hid-tools";
|
|
|
|
rev = version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-pxU1BvB+rjc5sptafMGnWi+vWPNDyCyUv8gTWg6z5hU=";
|
2022-10-30 15:09:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
libevdev
|
|
|
|
parse
|
|
|
|
pyyaml
|
|
|
|
click
|
|
|
|
pyudev
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-10-30 15:09:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require /dev/uhid
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python scripts to manipulate HID data";
|
|
|
|
homepage = "https://gitlab.freedesktop.org/libevdev/hid-tools";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = teams.freedesktop.members;
|
|
|
|
};
|
|
|
|
}
|