Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2020-08-23 02:18:27 +02:00
516 changed files with 15983 additions and 9551 deletions

View File

@@ -5,9 +5,10 @@
, praw
, pyenchant
, pygeoip
, pytest
, pytestCheckHook
, python
, pytz
, sqlalchemy
, xmltodict
}:
@@ -29,20 +30,26 @@ buildPythonPackage rec {
pyenchant
pygeoip
pytz
sqlalchemy
xmltodict
];
# remove once https://github.com/sopel-irc/sopel/pull/1653 lands
postPatch = ''
substituteInPlace requirements.txt \
--replace "praw<6.0.0" "praw<7.0.0"
--replace "praw>=4.0.0,<6.0.0" "praw"
'';
checkInputs = [ pytest ];
checkInputs = [ pytestCheckHook ];
checkPhase = ''
HOME=$PWD # otherwise tries to create tmpdirs at root
pytest .
preCheck = ''
export TESTDIR=$(mktemp -d)
cp -R ./test $TESTDIR
pushd $TESTDIR
'';
postCheck = ''
popd
'';
meta = with stdenv.lib; {