Merge pull request #197168 from jtojnar/hid-tools
hid-tools: init at 0.3.1
This commit is contained in:
commit
76f5e975b6
2 changed files with 43 additions and 0 deletions
41
pkgs/tools/misc/hid-tools/default.nix
Normal file
41
pkgs/tools/misc/hid-tools/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ 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
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = with python3.pkgs; [
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -4212,6 +4212,8 @@ with pkgs;
|
||||||
|
|
||||||
hid-listen = callPackage ../tools/misc/hid-listen { };
|
hid-listen = callPackage ../tools/misc/hid-listen { };
|
||||||
|
|
||||||
|
hid-tools = callPackage ../tools/misc/hid-tools { };
|
||||||
|
|
||||||
hidrd = callPackage ../tools/misc/hidrd { };
|
hidrd = callPackage ../tools/misc/hidrd { };
|
||||||
|
|
||||||
hiksink = callPackage ../tools/misc/hiksink {
|
hiksink = callPackage ../tools/misc/hiksink {
|
||||||
|
|
Loading…
Reference in a new issue