2018-10-26 18:34:38 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, praw
|
|
|
|
, xmltodict
|
|
|
|
, pytz
|
|
|
|
, pyenchant
|
|
|
|
, pygeoip
|
|
|
|
, python
|
|
|
|
, isPyPy
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sopel";
|
2019-02-16 08:53:25 +00:00
|
|
|
version = "6.6.3";
|
2018-10-26 18:34:38 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-16 08:53:25 +00:00
|
|
|
sha256 = "aa9a52da9cf33c1d5f6b9b8513d31a339d8cbef9a288487b251538949a4faae1";
|
2018-10-26 18:34:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|