pythonPackages.sopel: 6.6.8 -> 6.6.9 and fix build
This commit is contained in:
parent
79b015d9a2
commit
ce4743c35c
pkgs/development/python-modules/sopel
|
@ -1,33 +1,48 @@
|
||||||
{ stdenv
|
{ stdenv, buildPythonPackage, fetchPypi, isPyPy
|
||||||
, buildPythonPackage
|
, dnspython
|
||||||
, fetchPypi
|
, geoip2
|
||||||
, pytest
|
, ipython
|
||||||
, praw
|
, praw
|
||||||
, xmltodict
|
|
||||||
, pytz
|
|
||||||
, pyenchant
|
, pyenchant
|
||||||
, pygeoip
|
, pygeoip
|
||||||
|
, pytest
|
||||||
, python
|
, python
|
||||||
, isPyPy
|
, pytz
|
||||||
, isPy27
|
, xmltodict
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sopel";
|
pname = "sopel";
|
||||||
version = "6.6.8";
|
version = "6.6.9";
|
||||||
|
disabled = isPyPy;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "c32aa69ba8a9ae55daf6dbc265d7f56fe6026edef3bb81aeea7912b7b6b9f5b7";
|
sha256 = "1arldn3p2yp09wnn2cw50r5ri303d5jdsjnf6lgfl82jhfmk49a2";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ praw xmltodict pytz pyenchant pygeoip ];
|
dnspython
|
||||||
|
geoip2
|
||||||
|
ipython
|
||||||
|
praw
|
||||||
|
pyenchant
|
||||||
|
pygeoip
|
||||||
|
pytz
|
||||||
|
xmltodict
|
||||||
|
];
|
||||||
|
|
||||||
disabled = isPyPy || isPy27;
|
# remove once https://github.com/sopel-irc/sopel/pull/1653 lands
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace requirements.txt \
|
||||||
|
--replace "praw<6.0.0" "praw<7.0.0"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} test/*.py #*/
|
HOME=$PWD # otherwise tries to create tmpdirs at root
|
||||||
|
pytest .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -36,5 +51,4 @@ buildPythonPackage rec {
|
||||||
license = licenses.efl20;
|
license = licenses.efl20;
|
||||||
maintainers = with maintainers; [ mog ];
|
maintainers = with maintainers; [ mog ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue