depot/third_party/nixpkgs/pkgs/development/python-modules/hid-parser/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
706 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytest7CheckHook,
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 = [
pytest7CheckHook
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 ];
};
}