|
|
|
@ -1,11 +1,15 @@ |
|
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPyPy |
|
|
|
|
{ lib |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, dnspython |
|
|
|
|
, fetchPypi |
|
|
|
|
, geoip2 |
|
|
|
|
, ipython |
|
|
|
|
, isPyPy |
|
|
|
|
, praw |
|
|
|
|
, pyenchant |
|
|
|
|
, pygeoip |
|
|
|
|
, pytestCheckHook |
|
|
|
|
, pythonOlder |
|
|
|
|
, pytz |
|
|
|
|
, sqlalchemy |
|
|
|
|
, xmltodict |
|
|
|
@ -13,12 +17,14 @@ |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "sopel"; |
|
|
|
|
version = "7.1.8"; |
|
|
|
|
disabled = isPyPy; |
|
|
|
|
version = "7.1.9"; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
disabled = isPyPy || pythonOlder "3.7"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "sha256-zxb95GVcDrd3FG/k+0PLg+dVlMgQpf1ntG8jF/zpHH4="; |
|
|
|
|
hash = "sha256-IJ+ovLQv6/UU1oepmUQjzaWBG3Rdd3xvui7FjK85Urs="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
@ -33,15 +39,17 @@ buildPythonPackage rec { |
|
|
|
|
xmltodict |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
# remove once https://github.com/sopel-irc/sopel/pull/1653 lands |
|
|
|
|
checkInputs = [ |
|
|
|
|
pytestCheckHook |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace requirements.txt \ |
|
|
|
|
--replace "praw>=4.0.0,<6.0.0" "praw" \ |
|
|
|
|
--replace "sqlalchemy<1.4" "sqlalchemy" |
|
|
|
|
--replace "sqlalchemy<1.4" "sqlalchemy" \ |
|
|
|
|
--replace "xmltodict==0.12" "xmltodict>=0.12" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ]; |
|
|
|
|
|
|
|
|
|
preCheck = '' |
|
|
|
|
export TESTDIR=$(mktemp -d) |
|
|
|
|
cp -R ./test $TESTDIR |
|
|
|
@ -52,7 +60,9 @@ buildPythonPackage rec { |
|
|
|
|
popd |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "sopel" ]; |
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"sopel" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "Simple and extensible IRC bot"; |
|
|
|
|