2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
chardet,
|
|
|
|
cryptography,
|
|
|
|
feedparser,
|
|
|
|
fetchPypi,
|
|
|
|
mock,
|
|
|
|
pysocks,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
python-gnupg,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "limnoria";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2024.4.26";
|
2022-01-03 16:56:52 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-H8GAJvmkYJy8PJsXn4Yl9qY3zb9aFBa7sr4DN0bKYfQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
chardet
|
|
|
|
cryptography
|
|
|
|
feedparser
|
|
|
|
mock
|
|
|
|
pysocks
|
|
|
|
python-dateutil
|
|
|
|
python-gnupg
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.9") [ pytz ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
postPatch = ''
|
2022-01-03 16:56:52 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "version=version" 'version="${version}"'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
export PATH="$PATH:$out/bin";
|
|
|
|
supybot-test test -v --no-network
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
# Uses the same names as Supybot
|
|
|
|
"supybot"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A modified version of Supybot, an IRC bot";
|
|
|
|
homepage = "https://github.com/ProgVal/Limnoria";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
|
|
};
|
|
|
|
}
|