diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-07-01 16:04:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-01 16:04:01 +0200 |
commit | e77eba305f09b18b54e8871d912ac9ffcf72bdc5 (patch) | |
tree | b118a3d6e9cab165cf0d8b2fc025e40d57ff3370 /pkgs/applications/networking/errbot | |
parent | 1c0af40757c6bf9c15bd50888c79ff27682df7e1 (diff) | |
download | nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.tar nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.tar.gz nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.tar.bz2 nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.tar.lz nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.tar.xz nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.tar.zst nixlib-e77eba305f09b18b54e8871d912ac9ffcf72bdc5.zip |
errbot: init at 4.2.2 (#16551)
Diffstat (limited to 'pkgs/applications/networking/errbot')
-rw-r--r-- | pkgs/applications/networking/errbot/default.nix | 36 | ||||
-rw-r--r-- | pkgs/applications/networking/errbot/fix-dnspython.patch | 13 |
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/applications/networking/errbot/default.nix b/pkgs/applications/networking/errbot/default.nix new file mode 100644 index 000000000000..5b8140bfa51c --- /dev/null +++ b/pkgs/applications/networking/errbot/default.nix @@ -0,0 +1,36 @@ +{ stdenv, fetchurl, pythonPackages }: + +pythonPackages.buildPythonPackage rec { + name = "errbot-${version}"; + version = "4.2.2"; + + src = fetchurl { + url = "mirror://pypi/e/errbot/${name}.tar.gz"; + sha256 = "1f1nw4m58dvmw0a37gbnihgdxxr3sz0l39653jigq9ysh3nznifv"; + }; + + disabled = !pythonPackages.isPy3k; + + patches = [ + ./fix-dnspython.patch + ]; + + buildInputs = with pythonPackages; [ + pep8 mock pytest pytest_xdist + ]; + + propagatedBuildInputs = with pythonPackages; [ + webtest bottle threadpool rocket-errbot requests2 jinja2 + pyopenssl colorlog Yapsy markdown ansi pygments dns pep8 + daemonize pygments-markdown-lexer telegram irc slackclient + pyside sleekxmpp hypchat + ]; + + meta = with stdenv.lib; { + description = "Chatbot designed to be simple to extend with plugins written in Python"; + homepage = http://errbot.io/; + maintainers = with maintainers; [ fpletz ]; + license = licenses.gpl3; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/networking/errbot/fix-dnspython.patch b/pkgs/applications/networking/errbot/fix-dnspython.patch new file mode 100644 index 000000000000..7e2b037d78de --- /dev/null +++ b/pkgs/applications/networking/errbot/fix-dnspython.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index d57d4e8..9d036fc 100755 +--- a/setup.py ++++ b/setup.py +@@ -58,7 +58,7 @@ if PY2: + 'backports.functools_lru_cache', + 'configparser>=3.5.0b2'] # This is a backport from Python 3 + else: +- deps += ['dnspython3', ] # dnspython3 for SRV records ++ deps += ['dnspython', ] # dnspython for SRV records + + if not PY35_OR_GREATER: + deps += ['typing', ] # backward compatibility for 3.3 and 3.4 |