nixpkgs-suyu/pkgs/development/python-modules/sopel/default.nix
2018-10-27 09:07:24 +02:00

40 lines
751 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, praw
, xmltodict
, pytz
, pyenchant
, pygeoip
, python
, isPyPy
, isPy27
}:
buildPythonPackage rec {
pname = "sopel";
version = "6.3.1";
src = fetchPypi {
inherit pname version;
sha256 = "1swvw7xw8n5anb8ah8jilk4vk1y30y62fkibfd9vm9fbk45d1q48";
};
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 ];
};
}