biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / usb-devices / default.nix
blobbf86e943e2c769f816ebe10051fe97ff1ed7f74a
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pytestCheckHook,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "usb-devices";
12   version = "0.4.5";
13   format = "pyproject";
15   disabled = pythonOlder "3.9";
17   src = fetchFromGitHub {
18     owner = "Bluetooth-Devices";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-Nfdl5oRIdOfAo5PFAJJpadRyu2zeEkmYzxDQxbvpt6c=";
22   };
24   postPatch = ''
25     substituteInPlace pyproject.toml \
26       --replace " --cov=usb_devices --cov-report=term-missing:skip-covered" ""
27   '';
29   nativeBuildInputs = [ poetry-core ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "usb_devices" ];
35   meta = with lib; {
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 ];
41   };