Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / bluetooth-sensor-state-data / default.nix
bloba74769d0ec571cbd28e46932e33907fcc452cf67
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , home-assistant-bluetooth
5 , poetry-core
6 , pytestCheckHook
7 , pythonOlder
8 , sensor-state-data
9 }:
11 buildPythonPackage rec {
12   pname = "bluetooth-sensor-state-data";
13   version = "1.6.2";
14   format = "pyproject";
16   disabled = pythonOlder "3.9";
18   src = fetchFromGitHub {
19     owner = "Bluetooth-Devices";
20     repo = pname;
21     rev = "v${version}";
22     hash = "sha256-NC0l3wbQKz4MVM0kHbXBAUol74ir7V/JQgeYCVuyRs4=";
23   };
25   nativeBuildInputs = [
26     poetry-core
27   ];
29   propagatedBuildInputs = [
30     home-assistant-bluetooth
31     sensor-state-data
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36   ];
38   postPatch = ''
39     substituteInPlace pyproject.toml \
40       --replace " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
41   '';
43   pythonImportsCheck = [
44     "bluetooth_sensor_state_data"
45   ];
47   meta = with lib; {
48     description = "Models for storing and converting Bluetooth Sensor State Data";
49     homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data";
50     license = with licenses; [ asl20 ];
51     maintainers = with maintainers; [ fab ];
52   };