nixpkgs/pkgs/development/python-modules/bluecurrent-api/default.nix
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00

48 lines
908 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytz,
websockets,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bluecurrent-api";
version = "1.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "bluecurrent";
repo = "HomeAssistantAPI";
tag = "v${version}";
hash = "sha256-px4kZOvMUP5aGOQ1uxWnY6w77Woie/hVVdyylW8uSX4=";
};
build-system = [ setuptools ];
dependencies = [
pytz
websockets
];
pythonRelaxDeps = [ "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 ];
};
}