mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
86e6a0b7cc
Diff: https://github.com/AustinBrunkhorst/pysnooz/compare/refs/tags/v0.8.5...v0.8.6 Changelog: https://github.com/AustinBrunkhorst/pysnooz/blob/v0.8.6/CHANGELOG.md
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{ lib
|
|
, bleak
|
|
, bleak-retry-connector
|
|
, bluetooth-sensor-state-data
|
|
, buildPythonPackage
|
|
, events
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, home-assistant-bluetooth
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, transitions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysnooz";
|
|
version = "0.8.6";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AustinBrunkhorst";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-hJwIObiuFEAVhgZXYB9VCeAlewBBnk0oMkP83MUCpyU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace 'transitions = "^0.8.11"' 'transitions = ">=0.8.11"' \
|
|
--replace 'Events = "^0.4"' 'Events = ">=0.4"' \
|
|
--replace " --cov=pysnooz --cov-report=term-missing:skip-covered" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
bleak
|
|
bleak-retry-connector
|
|
bluetooth-sensor-state-data
|
|
events
|
|
home-assistant-bluetooth
|
|
transitions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pysnooz"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to control SNOOZ white noise machines";
|
|
homepage = "https://github.com/AustinBrunkhorst/pysnooz";
|
|
changelog = "https://github.com/AustinBrunkhorst/pysnooz/blob/v${version}/CHANGELOG.md";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|