depot/third_party/nixpkgs/pkgs/development/python-modules/rocketchat-api/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

44 lines
860 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
requests,
}:
buildPythonPackage rec {
pname = "rocketchat-api";
version = "1.33.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jadolg";
repo = "rocketchat_API";
rev = "refs/tags/${version}";
hash = "sha256-t1t0uksmdPTrksDF0K3/f3KxAv0fX2W8wDIIcWAPEVs=";
};
build-system = [ setuptools ];
dependencies = [
packaging
requests
];
pythonImportsCheck = [
"rocketchat_API"
"rocketchat_API.APIExceptions"
"rocketchat_API.APISections"
];
# requires running a Rocket.Chat server
doCheck = false;
meta = {
description = "Python API wrapper for Rocket.Chat";
homepage = "https://github.com/jadolg/rocketchat_API";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}