Unverified Commit a50d11a4 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #313902 from fabaff/bluetooth-sensor-state-data-bump

python312Packages.bluetooth-sensor-state-data: 1.6.2 -> 1.7.0
parents 78ae16c9 980e7754
Loading
Loading
Loading
Loading
+14 −13
Original line number Diff line number Diff line
@@ -11,38 +11,39 @@

buildPythonPackage rec {
  pname = "bluetooth-sensor-state-data";
  version = "1.6.2";
  format = "pyproject";
  version = "1.7.0";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchFromGitHub {
    owner = "Bluetooth-Devices";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-NC0l3wbQKz4MVM0kHbXBAUol74ir7V/JQgeYCVuyRs4=";
    repo = "bluetooth-sensor-state-data";
    rev = "refs/tags/v${version}";
    hash = "sha256-phiK+2tULBE78d1X/TsaT2kLRHxiCiuLMkaI7S6tqJ8=";
  };

  nativeBuildInputs = [ poetry-core ];
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
  '';

  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    home-assistant-bluetooth
    sensor-state-data
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
  '';

  pythonImportsCheck = [ "bluetooth_sensor_state_data" ];

  meta = with lib; {
    description = "Models for storing and converting Bluetooth Sensor State Data";
    homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data";
    license = with licenses; [ asl20 ];
    changelog = "https://github.com/Bluetooth-Devices/bluetooth-sensor-state-data/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}