python3Packages.sopel: 7.0.5 -> 7.0.6

authored by

Martin Weinelt and committed by
Jon
2addc088 d33659e9

+15 -8
+15 -8
pkgs/development/python-modules/sopel/default.nix
··· 5 5 , praw 6 6 , pyenchant 7 7 , pygeoip 8 - , pytest 8 + , pytestCheckHook 9 9 , python 10 10 , pytz 11 + , sqlalchemy 11 12 , xmltodict 12 13 }: 13 14 14 15 buildPythonPackage rec { 15 16 pname = "sopel"; 16 - version = "7.0.5"; 17 + version = "7.0.6"; 17 18 disabled = isPyPy; 18 19 19 20 src = fetchPypi { 20 21 inherit pname version; 21 - sha256 = "6ebe85aa5441c5ddeb48bfd320d57ed0bc002bbd779c50b1b15883022964284d"; 22 + sha256 = "0f0aixwjh5nax0hzar4993rg9yn1x23rksz5jl5gj8g2jyblsfay"; 22 23 }; 23 24 24 25 propagatedBuildInputs = [ ··· 29 30 pyenchant 30 31 pygeoip 31 32 pytz 33 + sqlalchemy 32 34 xmltodict 33 35 ]; 34 36 35 37 # remove once https://github.com/sopel-irc/sopel/pull/1653 lands 36 38 postPatch = '' 37 39 substituteInPlace requirements.txt \ 38 - --replace "praw<6.0.0" "praw<7.0.0" 40 + --replace "praw>=4.0.0,<6.0.0" "praw" 39 41 ''; 40 42 41 - checkInputs = [ pytest ]; 43 + checkInputs = [ pytestCheckHook ]; 44 + 45 + preCheck = '' 46 + export TESTDIR=$(mktemp -d) 47 + cp -R ./test $TESTDIR 48 + pushd $TESTDIR 49 + ''; 42 50 43 - checkPhase = '' 44 - HOME=$PWD # otherwise tries to create tmpdirs at root 45 - pytest . 51 + postCheck = '' 52 + popd 46 53 ''; 47 54 48 55 meta = with stdenv.lib; {