qgroundcontrol: 4.4.2 -> 4.4.3 (#360956)
[NixPkgs.git] / pkgs / development / python-modules / led-ble / default.nix
blob595e353c431b5bdd0d5eb0a9861855213786db02
2   lib,
3   async-timeout,
4   bleak,
5   bleak-retry-connector,
6   buildPythonPackage,
7   fetchFromGitHub,
8   flux-led,
9   poetry-core,
10   pytestCheckHook,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "led-ble";
16   version = "1.0.2";
17   format = "pyproject";
19   disabled = pythonOlder "3.9";
21   src = fetchFromGitHub {
22     owner = "Bluetooth-Devices";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-4z6SJE/VFNa81ecDal2IEX9adYBrSzco9VfhUPKBj4k=";
26   };
28   postPatch = ''
29     substituteInPlace pyproject.toml \
30       --replace " --cov=led_ble --cov-report=term-missing:skip-covered" ""
31   '';
33   nativeBuildInputs = [ poetry-core ];
35   propagatedBuildInputs = [
36     bleak
37     bleak-retry-connector
38     flux-led
39   ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
41   nativeCheckInputs = [ pytestCheckHook ];
43   pythonImportsCheck = [ "led_ble" ];
45   meta = with lib; {
46     description = "Library for LED BLE devices";
47     homepage = "https://github.com/Bluetooth-Devices/led-ble";
48     changelog = "https://github.com/Bluetooth-Devices/led-ble/blob/v${version}/CHANGELOG.md";
49     license = with licenses; [ mit ];
50     maintainers = with maintainers; [ fab ];
51   };