10 buildPythonPackage rec {
11 pname = "usb-devices";
15 disabled = pythonOlder "3.9";
17 src = fetchFromGitHub {
18 owner = "Bluetooth-Devices";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-Nfdl5oRIdOfAo5PFAJJpadRyu2zeEkmYzxDQxbvpt6c=";
25 substituteInPlace pyproject.toml \
26 --replace " --cov=usb_devices --cov-report=term-missing:skip-covered" ""
29 nativeBuildInputs = [ poetry-core ];
31 nativeCheckInputs = [ pytestCheckHook ];
33 pythonImportsCheck = [ "usb_devices" ];
36 description = "Library for for mapping, describing, and resetting USB devices";
37 homepage = "https://github.com/Bluetooth-Devices/usb-devices";
38 changelog = "https://github.com/Bluetooth-Devices/usb-devices/blob/v${version}/CHANGELOG.md";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];