nixpkgs/pkgs/development/python-modules/lark-oapi/default.nix
2026-06-29 05:44:41 +00:00

53 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
pycryptodome,
pytest-asyncio,
pytestCheckHook,
requests,
requests-toolbelt,
websockets,
}:
buildPythonPackage (finalAttrs: {
pname = "lark-oapi";
version = "1.6.9";
pyproject = true;
src = fetchFromGitHub {
owner = "larksuite";
repo = "oapi-sdk-python";
tag = "v${finalAttrs.version}";
hash = "sha256-W4eFhB9+XdqA/fX26XwULjvSlflL0ar/FDXWFqXsP8g=";
};
build-system = [ setuptools ];
dependencies = [
httpx
pycryptodome
requests
requests-toolbelt
websockets
];
# websockets 16.0 is compatible despite the <16 metadata constraint
pythonRelaxDeps = [ "websockets" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "lark_oapi" ];
meta = {
description = "Larksuite development interface SDK";
homepage = "https://github.com/larksuite/oapi-sdk-python";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.knightfemale ];
};
})