1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 packaging, 7 requests, 8}: 9 10buildPythonPackage rec { 11 pname = "rocketchat-api"; 12 version = "1.35.2"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "jadolg"; 17 repo = "rocketchat_API"; 18 tag = version; 19 hash = "sha256-U5r7SKCKneBgCSwCJRm+Tl/wPmMOrj93K5VVCO/OPCk="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ 25 packaging 26 requests 27 ]; 28 29 pythonImportsCheck = [ 30 "rocketchat_API" 31 "rocketchat_API.APIExceptions" 32 "rocketchat_API.APISections" 33 ]; 34 35 # requires running a Rocket.Chat server 36 doCheck = false; 37 38 meta = { 39 changelog = "https://github.com/jadolg/rocketchat_API/releases/tag/${src.tag}"; 40 description = "Python API wrapper for Rocket.Chat"; 41 homepage = "https://github.com/jadolg/rocketchat_API"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ dotlambda ]; 44 }; 45}