18 buildPythonPackage rec {
21 format = "setuptools";
23 disabled = isPyPy || pythonOlder "3.7";
26 inherit pname version;
27 hash = "sha256-IJ+ovLQv6/UU1oepmUQjzaWBG3Rdd3xvui7FjK85Urs=";
31 # https://github.com/sopel-irc/sopel/issues/2401
32 # https://github.com/sopel-irc/sopel/commit/596adc44330939519784389cbb927435305ef758.patch
33 # rewrite the patch because there are too many patches needed to apply the above patch.
34 ./python311-support.patch
37 propagatedBuildInputs = [
54 substituteInPlace requirements.txt \
55 --replace "praw>=4.0.0,<6.0.0" "praw" \
56 --replace "sqlalchemy<1.4" "sqlalchemy" \
57 --replace "xmltodict==0.12" "xmltodict>=0.12"
61 export TESTDIR=$(mktemp -d)
70 pythonImportsCheck = [
75 description = "Simple and extensible IRC bot";
76 homepage = "https://sopel.chat";
77 license = licenses.efl20;
78 maintainers = with maintainers; [ mog ];