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

44 lines
860 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
packaging,
requests,
}:
buildPythonPackage rec {
pname = "rocketchat-api";
version = "1.32.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jadolg";
repo = "rocketchat_API";
rev = "refs/tags/${version}";
hash = "sha256-mzcesoBU8sOznAgvi2u8NsUheyLXPZuyIkGghbc556c=";
};
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 ];
};
}