Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchFromGitHub, home-assistant-bluetooth, poetry-core, pytestCheckHook, pythonOlder, sensor-state-data}:
buildPythonPackage rec { pname = "bluetooth-sensor-state-data"; version = "1.6.2"; format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = pname; rev = "v${version}"; hash = "sha256-NC0l3wbQKz4MVM0kHbXBAUol74ir7V/JQgeYCVuyRs4="; };
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ 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 ]; maintainers = with maintainers; [ fab ]; };}