infrastructure/modules/dgn-chatops/ircrobots.nix
Ryan Lahfa 859418b377
Some checks failed
Check meta / check_meta (pull_request) Successful in 19s
Check meta / check_dns (pull_request) Failing after 57s
build configuration / build_storage01 (pull_request) Successful in 1m9s
build configuration / build_vault01 (pull_request) Successful in 1m14s
build configuration / build_web02 (pull_request) Successful in 1m7s
build configuration / build_compute01 (pull_request) Successful in 1m34s
build configuration / build_web01 (pull_request) Successful in 1m37s
lint / check (pull_request) Successful in 23s
build configuration / build_rescue01 (pull_request) Successful in 1m9s
build configuration / build_geo01 (pull_request) Successful in 1m1s
build configuration / build_geo02 (pull_request) Successful in 1m6s
build configuration / build_bridge01 (pull_request) Successful in 1m6s
build configuration / push_to_cache_web02 (pull_request) Successful in 1m20s
build configuration / push_to_cache_storage01 (pull_request) Successful in 1m29s
build configuration / push_to_cache_rescue01 (pull_request) Successful in 1m34s
build configuration / push_to_cache_geo01 (pull_request) Successful in 1m22s
build configuration / push_to_cache_compute01 (pull_request) Successful in 2m0s
build configuration / push_to_cache_web01 (pull_request) Successful in 2m5s
build configuration / push_to_cache_geo02 (pull_request) Successful in 1m22s
build configuration / push_to_cache_bridge01 (pull_request) Successful in 1m14s
build configuration / build_web02 (push) Successful in 1m19s
build configuration / build_vault01 (push) Successful in 1m21s
build configuration / build_compute01 (push) Successful in 1m23s
build configuration / build_storage01 (push) Successful in 1m23s
lint / check (push) Successful in 24s
build configuration / build_web01 (push) Successful in 1m48s
build configuration / build_geo02 (push) Successful in 1m5s
build configuration / build_bridge01 (push) Successful in 1m7s
build configuration / build_geo01 (push) Successful in 1m11s
build configuration / build_rescue01 (push) Successful in 1m15s
build configuration / push_to_cache_web02 (push) Successful in 1m15s
build configuration / push_to_cache_compute01 (push) Successful in 1m38s
build configuration / push_to_cache_geo02 (push) Successful in 1m20s
build configuration / push_to_cache_bridge01 (push) Successful in 1m22s
build configuration / push_to_cache_storage01 (push) Successful in 1m37s
build configuration / push_to_cache_geo01 (push) Successful in 1m8s
build configuration / push_to_cache_web01 (push) Successful in 2m7s
build configuration / push_to_cache_rescue01 (push) Successful in 1m23s
feat(chatops): init takumi
Takumi means "artisan" (in the sense of "master") in Japanese. It's an
accurate and efficient ChatOps for day-to-day operations of DGNum.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
2024-09-20 21:50:15 +02:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitea,
pythonOlder,
anyio,
asyncio-rlock,
asyncio-throttle,
ircstates,
async-stagger,
async-timeout,
python,
}:
buildPythonPackage rec {
pname = "ircrobots";
version = "0.7.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitea {
domain = "git.dgnum.eu";
owner = "DGNum";
repo = pname;
# No tag yet :(.
rev = "63aa84b40450bd534fc232eee10e8088028c9f6d";
hash = "sha256-gXiPy6wjPEtc9v0cG0lb2QVXDlU5Q8ncxJO0lBm2RSE=";
};
postPatch = ''
# too specific pins https://github.com/jesopo/ircrobots/issues/3
sed -iE 's/anyio.*/anyio/' requirements.txt
'';
propagatedBuildInputs = [
anyio
asyncio-rlock
asyncio-throttle
ircstates
async-stagger
async-timeout
];
checkPhase = ''
${python.interpreter} -m unittest test
'';
pythonImportsCheck = [ "ircrobots" ];
meta = with lib; {
description = "Asynchronous bare-bones IRC bot framework for python3";
license = licenses.mit;
homepage = "https://github.com/jesopo/ircrobots";
maintainers = with maintainers; [ hexa ];
};
}