python3Packages.sopel: 7.0.5 -> 7.0.6

This commit is contained in:
Martin Weinelt 2020-08-17 14:58:14 +02:00 committed by Jon
parent d33659e945
commit 2addc08836

View file

@ -5,20 +5,21 @@
, praw , praw
, pyenchant , pyenchant
, pygeoip , pygeoip
, pytest , pytestCheckHook
, python , python
, pytz , pytz
, sqlalchemy
, xmltodict , xmltodict
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "sopel"; pname = "sopel";
version = "7.0.5"; version = "7.0.6";
disabled = isPyPy; disabled = isPyPy;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "6ebe85aa5441c5ddeb48bfd320d57ed0bc002bbd779c50b1b15883022964284d"; sha256 = "0f0aixwjh5nax0hzar4993rg9yn1x23rksz5jl5gj8g2jyblsfay";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -29,20 +30,26 @@ buildPythonPackage rec {
pyenchant pyenchant
pygeoip pygeoip
pytz pytz
sqlalchemy
xmltodict xmltodict
]; ];
# remove once https://github.com/sopel-irc/sopel/pull/1653 lands # remove once https://github.com/sopel-irc/sopel/pull/1653 lands
postPatch = '' postPatch = ''
substituteInPlace requirements.txt \ 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 = '' preCheck = ''
HOME=$PWD # otherwise tries to create tmpdirs at root export TESTDIR=$(mktemp -d)
pytest . cp -R ./test $TESTDIR
pushd $TESTDIR
'';
postCheck = ''
popd
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {