2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
dnspython,
|
|
|
|
fetchPypi,
|
|
|
|
geoip2,
|
|
|
|
ipython,
|
|
|
|
isPyPy,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
praw,
|
|
|
|
pyenchant,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
sqlalchemy,
|
|
|
|
xmltodict,
|
2024-09-19 14:19:46 +00:00
|
|
|
importlib-metadata,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sopel";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "8.0.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
disabled = isPyPy || pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-juLJp0Et5qMZwBZzw0e4tKg1cBYqAsH8KUzqNoIP70U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace-fail "setuptools~=66.1" "setuptools"
|
|
|
|
'';
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = [
|
2020-04-24 23:36:52 +00:00
|
|
|
dnspython
|
|
|
|
geoip2
|
|
|
|
ipython
|
|
|
|
praw
|
|
|
|
pyenchant
|
|
|
|
pytz
|
2020-08-20 17:08:02 +00:00
|
|
|
sqlalchemy
|
2020-04-24 23:36:52 +00:00
|
|
|
xmltodict
|
2024-09-19 14:19:46 +00:00
|
|
|
importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRemoveDeps = [ "sopel-help" ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonRelaxDeps = [ "sqlalchemy" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires network access
|
|
|
|
"test_example_exchange_cmd_0"
|
|
|
|
"test_example_exchange_cmd_1"
|
|
|
|
"test_example_duck_0"
|
|
|
|
"test_example_duck_1"
|
|
|
|
"test_example_suggest_0"
|
|
|
|
"test_example_suggest_1"
|
|
|
|
"test_example_suggest_2"
|
|
|
|
"test_example_tr2_0"
|
|
|
|
"test_example_tr2_1"
|
|
|
|
"test_example_tr2_2"
|
|
|
|
"test_example_title_command_0"
|
|
|
|
"test_example_wiktionary_0"
|
|
|
|
"test_example_wiktionary_ety_0"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "sopel" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple and extensible IRC bot";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://sopel.chat";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.efl20;
|
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
};
|
|
|
|
}
|