4bac34ead1
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aresponses
|
|
, asynctest
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, python-engineio
|
|
, python-socketio
|
|
, pythonOlder
|
|
, websocket-client
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zwave-me-ws";
|
|
version = "0.3.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Z-Wave-Me";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-DfQh9wuYx/gCyW3ONk8wwDOgbp8Pifx3nwDgS5NZFhI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
websocket-client
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"zwave_me_ws"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to connect to a ZWave-Me instance";
|
|
homepage = "https://github.com/Z-Wave-Me/zwave-me-ws";
|
|
changelog = "https://github.com/Z-Wave-Me/zwave-me-ws/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|