nixpkgs/pkgs/development/python-modules/sopel/default.nix

41 lines
763 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, praw
, xmltodict
, pytz
, pyenchant
, pygeoip
, python
, isPyPy
, isPy27
}:
buildPythonPackage rec {
pname = "sopel";
2019-04-16 18:15:40 +01:00
version = "6.6.6";
src = fetchPypi {
inherit pname version;
2019-04-16 18:15:40 +01:00
sha256 = "dfb6d6c349cbdd463736e4be781cc005efeb1be91dbdc60cc76fda7cad142def";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ praw xmltodict pytz pyenchant pygeoip ];
disabled = isPyPy || isPy27;
checkPhase = ''
${python.interpreter} test/*.py #*/
'';
meta = with stdenv.lib; {
description = "Simple and extensible IRC bot";
homepage = "http://sopel.chat";
license = licenses.efl20;
maintainers = with maintainers; [ mog ];
};
}