3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/sopel/default.nix

55 lines
995 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi, isPyPy
, dnspython
, geoip2
, ipython
, praw
, pyenchant
, pygeoip
, pytest
, python
, pytz
, xmltodict
}:
buildPythonPackage rec {
pname = "sopel";
2020-07-31 09:56:47 +01:00
version = "7.0.5";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
2020-07-31 09:56:47 +01:00
sha256 = "6ebe85aa5441c5ddeb48bfd320d57ed0bc002bbd779c50b1b15883022964284d";
};
propagatedBuildInputs = [
dnspython
geoip2
ipython
praw
pyenchant
pygeoip
pytz
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"
'';
checkInputs = [ pytest ];
checkPhase = ''
HOME=$PWD # otherwise tries to create tmpdirs at root
pytest .
'';
meta = with stdenv.lib; {
description = "Simple and extensible IRC bot";
homepage = "http://sopel.chat";
license = licenses.efl20;
maintainers = with maintainers; [ mog ];
};
}