biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / rapt-ble / default.nix
bloba72e0f68d6577ceb794b6f18a53310a18d0234bb
2   lib,
3   bluetooth-data-tools,
4   bluetooth-sensor-state-data,
5   buildPythonPackage,
6   fetchFromGitHub,
7   home-assistant-bluetooth,
8   poetry-core,
9   pytestCheckHook,
10   pythonOlder,
11   sensor-state-data,
14 buildPythonPackage rec {
15   pname = "rapt-ble";
16   version = "0.1.2";
17   format = "pyproject";
19   disabled = pythonOlder "3.9";
21   src = fetchFromGitHub {
22     owner = "sairon";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-ozZwVgTV/xYl1nXLiybcPs6DQKocNdbxTEYDfYyQuvY=";
26   };
28   postPatch = ''
29     substituteInPlace pyproject.toml \
30       --replace " --cov=rapt_ble --cov-report=term-missing:skip-covered" ""
31   '';
33   nativeBuildInputs = [ poetry-core ];
35   propagatedBuildInputs = [
36     bluetooth-data-tools
37     bluetooth-sensor-state-data
38     home-assistant-bluetooth
39     sensor-state-data
40   ];
42   nativeCheckInputs = [ pytestCheckHook ];
44   pythonImportsCheck = [ "rapt_ble" ];
46   meta = with lib; {
47     description = "Library for RAPT Pill hydrometer BLE devices";
48     homepage = "https://github.com/sairon/rapt-ble";
49     changelog = "https://github.com/sairon/rapt-ble/blob/v${version}/CHANGELOG.md";
50     license = with licenses; [ mit ];
51     maintainers = with maintainers; [ fab ];
52   };