2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-10-04 16:56:33 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
anyio,
|
|
|
|
asyncio-rlock,
|
|
|
|
asyncio-throttle,
|
|
|
|
ircstates,
|
|
|
|
async-stagger,
|
|
|
|
async-timeout,
|
2024-10-04 16:56:33 +00:00
|
|
|
unittestCheckHook,
|
2020-11-03 02:18:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ircrobots";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "0.7.2";
|
|
|
|
pyproject = true;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jesopo";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-slz4AH2Mi21N3aV+OrnoXoQsseS7arW2NuUZARQJsf0=";
|
2020-11-03 02:18:15 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
pythonRelaxDeps = true;
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
anyio
|
2021-12-19 01:06:50 +00:00
|
|
|
asyncio-rlock
|
2020-11-03 02:18:15 +00:00
|
|
|
asyncio-throttle
|
|
|
|
ircstates
|
2023-08-10 07:59:29 +00:00
|
|
|
async-stagger
|
2020-11-03 02:18:15 +00:00
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2020-11-03 02:18:15 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|