evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / ruuvitag-ble / default.nix
blob629e3c539954a169ad024c2a4fdb2fb85b3c759a
2   lib,
3   bluetooth-data-tools,
4   bluetooth-sensor-state-data,
5   buildPythonPackage,
6   fetchFromGitHub,
7   hatchling,
8   home-assistant-bluetooth,
9   pytestCheckHook,
10   pythonOlder,
11   sensor-state-data,
14 buildPythonPackage rec {
15   pname = "ruuvitag-ble";
16   version = "0.1.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-J+807p2mE+VZ0oqldFtjdcNGsRTkAU54s6byQSGrng4=";
26   };
28   nativeBuildInputs = [ hatchling ];
30   propagatedBuildInputs = [
31     bluetooth-data-tools
32     bluetooth-sensor-state-data
33     home-assistant-bluetooth
34     sensor-state-data
35   ];
37   nativeCheckInputs = [ pytestCheckHook ];
39   postPatch = ''
40     substituteInPlace pyproject.toml \
41       --replace " --cov=ruuvitag_ble --cov-report=term-missing:skip-covered" ""
42   '';
44   pythonImportsCheck = [ "ruuvitag_ble" ];
46   meta = with lib; {
47     description = "Library for Ruuvitag BLE devices";
48     homepage = "https://github.com/Bluetooth-Devices/ruuvitag-ble";
49     license = with licenses; [ mit ];
50     maintainers = with maintainers; [ fab ];
51   };