Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 home-assistant-bluetooth, 6 poetry-core, 7 pytestCheckHook, 8 pythonOlder, 9 sensor-state-data, 10}: 11 12buildPythonPackage rec { 13 pname = "sensor-state-data"; 14 version = "2.18.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "Bluetooth-Devices"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-9GdBKUhueis8pnQP5ZNxvEyRXVGINTueVzLOR4xx5mU="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 postPatch = '' 31 substituteInPlace pyproject.toml \ 32 --replace " --cov=sensor_state_data --cov-report=term-missing:skip-covered" "" 33 ''; 34 35 pythonImportsCheck = [ "sensor_state_data" ]; 36 37 meta = with lib; { 38 description = "Models for storing and converting Sensor Data state"; 39 homepage = "https://github.com/bluetooth-devices/sensor-state-data"; 40 changelog = "https://github.com/Bluetooth-Devices/sensor-state-data/releases/tag/v${version}"; 41 license = with licenses; [ asl20 ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}