1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 pytestCheckHook, 7 hypothesis, 8}: 9 10buildPythonPackage rec { 11 pname = "hid-parser"; 12 version = "0.1.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "usb-tools"; 17 repo = "python-hid-parser"; 18 tag = version; 19 hash = "sha256-8aGyLTsBK5etwbqFkNinbLHCt20fsQEmuBvu3RrwCDA="; 20 }; 21 22 build-system = [ flit-core ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 hypothesis 27 ]; 28 29 pythonImportsCheck = [ "hid_parser" ]; 30 31 meta = with lib; { 32 description = "Typed pure Python library to parse HID report descriptors"; 33 homepage = "https://github.com/usb-tools/python-hid-parser"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ kranzes ]; 36 }; 37}