1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 setuptools,
6 pytest7CheckHook,
7 hypothesis,
8}:
9
10buildPythonPackage rec {
11 pname = "hid-parser";
12 version = "0.0.3";
13 format = "pyproject";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-zbm+h+ieDmd1K0uH+9B8EWtYScxqYJXVpY9bXdBivA4=";
18 };
19
20 nativeBuildInputs = [ setuptools ];
21
22 nativeCheckInputs = [
23 pytest7CheckHook
24 hypothesis
25 ];
26
27 pythonImportsCheck = [ "hid_parser" ];
28
29 meta = with lib; {
30 description = "Typed pure Python library to parse HID report descriptors";
31 homepage = "https://github.com/usb-tools/python-hid-parser";
32 license = licenses.mit;
33 maintainers = with maintainers; [ kranzes ];
34 };
35}