22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
52 lines
943 B
Nix
52 lines
943 B
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.2.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Z-Wave-Me";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-x7P6fOYTe/u0GKUsO62cNVz2i/hVjUb8t8Bigijxgk0=";
|
|
};
|
|
|
|
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";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|