python3Packages.sopel: 7.0.5 -> 7.0.6
This commit is contained in:
parent
d33659e945
commit
2addc08836
@ -5,20 +5,21 @@
|
||||
, praw
|
||||
, pyenchant
|
||||
, pygeoip
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, python
|
||||
, pytz
|
||||
, sqlalchemy
|
||||
, xmltodict
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sopel";
|
||||
version = "7.0.5";
|
||||
version = "7.0.6";
|
||||
disabled = isPyPy;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6ebe85aa5441c5ddeb48bfd320d57ed0bc002bbd779c50b1b15883022964284d";
|
||||
sha256 = "0f0aixwjh5nax0hzar4993rg9yn1x23rksz5jl5gj8g2jyblsfay";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user