depot/third_party/nixpkgs/pkgs/development/python-modules/pycontrol4/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
aiohttp,
xmltodict,
python-socketio-v4,
websocket-client,
}:
buildPythonPackage rec {
pname = "pycontrol4";
version = "1.2.1";
disabled = pythonOlder "3.6";
pyproject = true;
src = fetchFromGitHub {
owner = "lawtancool";
repo = "pyControl4";
rev = "refs/tags/v${version}";
hash = "sha256-0ZuztqHbrd+kMDGv3xyUYoTF/Ho+oHkycjSrKz8JABM=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
xmltodict
python-socketio-v4
websocket-client
];
# tests access network
doCheck = false;
pythonImportsCheck = [
"pyControl4.account"
"pyControl4.alarm"
"pyControl4.director"
"pyControl4.light"
];
meta = with lib; {
changelog = "https://github.com/lawtancool/pyControl4/releases/tag/v${version}";
description = "Python 3 asyncio package for interacting with Control4 systems";
homepage = "https://github.com/lawtancool/pyControl4";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}