diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/hid-parser/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/hid-parser/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/hid-parser/default.nix b/nixpkgs/pkgs/development/python-modules/hid-parser/default.nix new file mode 100644 index 000000000000..56aeb503b49c --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/hid-parser/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchPypi +, setuptools +, pytestCheckHook +, hypothesis +}: + +buildPythonPackage rec { + pname = "hid-parser"; + version = "0.0.3"; + format = "pyproject"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-zbm+h+ieDmd1K0uH+9B8EWtYScxqYJXVpY9bXdBivA4="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + hypothesis + ]; + + pythonImportsCheck = [ "hid_parser" ]; + + meta = with lib; { + description = "Typed pure Python library to parse HID report descriptors"; + homepage = "https://github.com/usb-tools/python-hid-parser"; + license = licenses.mit; + maintainers = with maintainers; [ kranzes ]; + }; +} |