2022-10-22 01:01:06 +00:00
|
|
|
{ python3
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonPackage rec {
|
|
|
|
pname = "hid-tools";
|
|
|
|
version = "0.3.1";
|
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "libevdev";
|
|
|
|
repo = "hid-tools";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "r496SKBGgHriIhriWYhhCSiChQUKhnHT/lEx9sEoT/0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
libevdev
|
|
|
|
parse
|
|
|
|
pyyaml
|
|
|
|
click
|
|
|
|
pyudev
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-10-22 01:01:06 +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;
|
|
|
|
};
|
|
|
|
}
|