anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / bluemaestro-ble / default.nix
blobd1f8cbd912646f613b6ea09a7d4d1518f00a9b9d
2   lib,
3   bluetooth-data-tools,
4   bluetooth-sensor-state-data,
5   buildPythonPackage,
6   fetchFromGitHub,
7   poetry-core,
8   pytestCheckHook,
9   pythonOlder,
10   sensor-state-data,
13 buildPythonPackage rec {
14   pname = "bluemaestro-ble";
15   version = "0.2.3";
16   format = "pyproject";
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "Bluetooth-Devices";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-mJ5JNGN4F9U3WMJQDwiZwuxE0zOirwo1sWF3/bVwXhY=";
25   };
27   nativeBuildInputs = [ poetry-core ];
29   propagatedBuildInputs = [
30     bluetooth-data-tools
31     bluetooth-sensor-state-data
32     sensor-state-data
33   ];
35   nativeCheckInputs = [ pytestCheckHook ];
37   postPatch = ''
38     substituteInPlace pyproject.toml \
39       --replace " --cov=bluemaestro_ble --cov-report=term-missing:skip-covered" ""
40   '';
42   pythonImportsCheck = [ "bluemaestro_ble" ];
44   meta = with lib; {
45     description = "Library for bluemaestro BLE devices";
46     homepage = "https://github.com/Bluetooth-Devices/bluemaestro-ble";
47     changelog = "https://github.com/Bluetooth-Devices/bluemaestro-ble/blob/v${version}/CHANGELOG.md";
48     license = with licenses; [ mit ];
49     maintainers = with maintainers; [ fab ];
50   };