biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / bluetooth-sensor-state-data / default.nix
blobdf2038a8e96c8afe14a68809376b2d8ab50bc51b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   home-assistant-bluetooth,
6   poetry-core,
7   pytestCheckHook,
8   pythonOlder,
9   sensor-state-data,
12 buildPythonPackage rec {
13   pname = "bluetooth-sensor-state-data";
14   version = "1.7.1";
15   pyproject = true;
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "Bluetooth-Devices";
21     repo = "bluetooth-sensor-state-data";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-Gsg6Gbb+nvrKr7vn9zUuPTPtSjqFJyMk7oLt7LUUn5A=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace-fail " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
29   '';
31   build-system = [ poetry-core ];
33   dependencies = [
34     home-assistant-bluetooth
35     sensor-state-data
36   ];
38   nativeCheckInputs = [ pytestCheckHook ];
40   pythonImportsCheck = [ "bluetooth_sensor_state_data" ];
42   meta = with lib; {
43     description = "Models for storing and converting Bluetooth Sensor State Data";
44     homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data";
45     changelog = "https://github.com/Bluetooth-Devices/bluetooth-sensor-state-data/releases/tag/v${version}";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ fab ];
48   };