diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-26 13:34:38 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-27 09:07:24 +0200 |
commit | 7edd82b086b840347ae0270ebbb8bf74ac947b56 (patch) | |
tree | 1ca788d60dcf6184aad6dedfe87d9cab53e3d2a1 /pkgs/development/python-modules/sopel/default.nix | |
parent | 162a894ec5af5c0cc1232cc6e39ac5dd12022b74 (diff) |
pythonPackages.sopel: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/sopel/default.nix')
-rw-r--r-- | pkgs/development/python-modules/sopel/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sopel/default.nix b/pkgs/development/python-modules/sopel/default.nix new file mode 100644 index 000000000000..1103e0fa3d30 --- /dev/null +++ b/pkgs/development/python-modules/sopel/default.nix @@ -0,0 +1,40 @@ +{ 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 ]; + }; + +} |