depot/third_party/nixpkgs/pkgs/development/python-modules/zwave-me-ws/default.nix

53 lines
953 B
Nix
Raw Normal View History

{ 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.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Z-Wave-Me";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-M/+ij6Xjx3irZRAFlHBF+0JHaVpY+kG2i5OISneVjws=";
};
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 ];
};
}