forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#286840 from dotlambda/bluecurrent-api-init
home-assistant: support blue_current component
- Loading branch information
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
54 changes: 54 additions & 0 deletions
54
pkgs/development/python-modules/bluecurrent-api/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, pythonOlder | ||
, fetchPypi | ||
, pythonRelaxDepsHook | ||
, setuptools | ||
, pytz | ||
, websockets | ||
, pytest-asyncio | ||
, pytest-mock | ||
, pytestCheckHook | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "bluecurrent-api"; | ||
version = "1.0.6"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.9"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-XHVdtkiG0ff/OY8g+W5iur7OAyhhk1UGA+XUfB2L8/o="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
pythonRelaxDepsHook | ||
setuptools | ||
]; | ||
|
||
pythonRemoveDeps = [ | ||
"asyncio" | ||
]; | ||
|
||
propagatedBuildInputs = [ | ||
pytz | ||
websockets | ||
]; | ||
|
||
pythonImportsCheck = [ "bluecurrent_api" ]; | ||
|
||
nativeCheckInputs = [ | ||
pytest-asyncio | ||
pytest-mock | ||
pytestCheckHook | ||
]; | ||
|
||
meta = { | ||
description = "Wrapper for the Blue Current websocket api"; | ||
homepage = "https://github.com/bluecurrent/HomeAssistantAPI"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ dotlambda ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters