From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH] small patchseries to add the irc bot limnoria. Date: Sun, 18 Sep 2016 14:14:32 +0000 Message-ID: <871t0hjnw7.fsf@we.make.ritual.n0.is> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blcrk-0001ja-0k for guix-devel@gnu.org; Sun, 18 Sep 2016 10:14:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1blcrf-0002dK-TE for guix-devel@gnu.org; Sun, 18 Sep 2016 10:14:43 -0400 Received: from aibo.runbox.com ([91.220.196.211]:57357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1blcrf-0002aS-Hp for guix-devel@gnu.org; Sun, 18 Sep 2016 10:14:39 -0400 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1blcrb-0007nr-Ap for guix-devel@gnu.org; Sun, 18 Sep 2016 16:14:35 +0200 Received: from xd9bb9a67.dyn.telefonica.de ([217.187.154.103] helo=localhost) by mailfront11.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1blcrZ-0002sz-JR for guix-devel@gnu.org; Sun, 18 Sep 2016 16:14:33 +0200 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain This is a small patchseries to add the bot limnoria, based on supybot. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-Add-python-socksipy-branch.patch Content-Transfer-Encoding: quoted-printable From=20af018a18d19541d7f86978fe43e960d979344b1c Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 18 Sep 2016 13:16:23 +0000 Subject: [PATCH 1/4] gnu: Add python-socksipy-branch. * gnu/packages/python.scm (python-socksipy-branch): New variable. =2D-- gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 027a9f2..00001b8 100644 =2D-- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3621,6 +3621,35 @@ routines such as routines for numerical integration = and optimization.") (define-public python2-scipy (package-with-python2 python-scipy)) =20 +(define-public python-socksipy-branch + (package + (name "python-socksipy-branch") + (version "1.01") + (source + (origin + (method url-fetch) + (uri (pypi-uri "SocksiPy-branch" version)) + (sha256 + (base32 + "01l41v4g7fy9fzvinmjxy6zcbhgqaif8dhdqm4w90fwcw9h51a8p")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) ; There are no tests + (home-page "http://code.google.com/p/socksipy-branch/") + (synopsis "Python SOCKS module") + (description + "SocksiPy - A Python SOCKS client module. It provides a +socket-like interface that supports connections to any TCP +service through the use of a SOCKS4, SOCKS5 or HTTP proxy. +The original version was developed by Dan Haim, this is a +branch created by Mario Vilas to address some open issues, +as the original project seems to have been abandoned circa 2007.") + (license license:bsd-3))) + +(define-public python2-socksipy-branch + (package-with-python2 + (strip-python2-variant python-socksipy-branch))) + (define-public python-sqlalchemy (package (name "python-sqlalchemy") =2D-=20 2.10.0 --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0002-license-Add-freebsd-doc.patch Content-Transfer-Encoding: quoted-printable From=205118def75e0a97eea5d0f64b64d0977baaec3af7 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 18 Sep 2016 13:57:33 +0000 Subject: [PATCH 2/4] license: Add freebsd-doc. * guix/licenses.scm (freebsd-doc): New variable. =2D-- guix/licenses.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guix/licenses.scm b/guix/licenses.scm index 265f048..34a34a4 100644 =2D-- a/guix/licenses.scm +++ b/guix/licenses.scm @@ -8,6 +8,7 @@ ;;; Copyright =C2=A9 2016 Leo Famulari ;;; Copyright =C2=A9 2016 Fabian Harfert ;;; Copyright =C2=A9 2016 Rene Saavedra +;;; Copyright =C2=A9 2016 ng0 ;;; ;;; This file is part of GNU Guix. ;;; @@ -43,6 +44,7 @@ epl1.0 expat freetype + freebsd-doc giftware gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+ gfl1.0 @@ -276,6 +278,11 @@ at URI, which may be a file:// URI pointing the packag= e's tree." "https://www.gnu.org/licenses/fdl.html" "https://www.gnu.org/licenses/license-list#FDL")) =20 +(define freebsd-doc + (license "FreeBSD Documentation License" + "https://www.freebsd.org/copyright/freebsd-doc-license.html" + "https://www.gnu.org/licenses/license-list.html#FreeBSDDL")) + (define opl1.0+ (license "Open Publication License 1.0 or later" "http://opencontent.org/openpub/" =2D-=20 2.10.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0003-gnu-Add-python-feedparser.patch Content-Transfer-Encoding: quoted-printable From=20ddc2dbcb4308750cad4842ef1730d74dbe3bf4a8 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 18 Sep 2016 13:58:25 +0000 Subject: [PATCH 3/4] gnu: Add python-feedparser. * gnu/packages/python.scm (python-feedparser): New variable. =2D-- gnu/packages/web.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 342262b..8acae63 100644 =2D-- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -45,6 +45,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system r) #:use-module (guix build-system trivial) + #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages apr) #:use-module (gnu packages documentation) @@ -3146,6 +3147,34 @@ http://opensearch.a9.com} compatible search engines.= ") their web site.") (home-page "http://search.cpan.org/~gaas/WWW-RobotRules/"))) =20 +(define-public python-feedparser + (package + (name "python-feedparser") + (version "5.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "feedparser" version ".tar.bz2")) + (sha256 + (base32 + "00hb4qg2am06g81mygfi1jsbx8830024jm45g6qp9g8fr6am91yf")))) + (build-system python-build-system) + (home-page + "https://github.com/kurtmckee/feedparser") + (synopsis "Parse feeds in Python") + (description + "Universal feed parser which handles RSS 0.9x, RSS 1.0, RSS 2.0, +CDF, Atom 0.3, and Atom 1.0 feeds.") + (license (list l:bsd-2 ; source code + l:freebsd-doc)))) ; documentation + +(define-public python2-feedparser + (let ((base (package-with-python2 + (strip-python2-variant python-feedparser)))) + (package (inherit base) + (native-inputs + `(("python2-setuptools" ,python2-setuptools)))))) + (define-public r-httpuv (package (name "r-httpuv") =2D-=20 2.10.0 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0004-gnu-Add-limnoria.patch Content-Transfer-Encoding: quoted-printable From=209e378d8d6878ab65ca6afa196901a9b8b8590ea5 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 18 Sep 2016 14:11:20 +0000 Subject: [PATCH 4/4] gnu: Add limnoria. * gnu/packages/irc.scm (limnoria): New variable. =2D-- gnu/packages/irc.scm | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm index 1058bef..de3569e 100644 =2D-- a/gnu/packages/irc.scm +++ b/gnu/packages/irc.scm @@ -26,6 +26,7 @@ #:use-module (guix packages) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system python) #:use-module (gnu packages) #:use-module (gnu packages aspell) #:use-module (gnu packages autogen) @@ -48,7 +49,8 @@ #:use-module (gnu packages python) #:use-module (gnu packages qt) #:use-module (gnu packages tcl) =2D #:use-module (gnu packages tls)) + #:use-module (gnu packages tls) + #:use-module (gnu packages web)) =20 (define-public quassel (package @@ -291,3 +293,37 @@ and extensible with plugins and scripts.") (description "sic is a simple IRC client, even more minimalistic than ii.") (license license:expat))) + +(define-public limnoria + (package + (name "limnoria") + (version "2016.08.07") + (source + (origin + (method url-fetch) + (uri (pypi-uri "limnoria" version)) + (sha256 + (base32 + "0w1d98hfhn4iqrczam7zahhqsvxa79n3xfcrm4jwkg5lba4f9ccm")))) + (build-system python-build-system) + (inputs + `(("python-pytz" ,python-pytz) + ("python-chardet" ,python-chardet) + ("python-dateutil" ,python-dateutil) + ("python-gnupg" ,python-gnupg) + ("python-feedparser" ,python-feedparser) + ("python-sqlalchemy" ,python-sqlalchemy) + ("python-socksipy-branch" ,python-socksipy-branch) + ("python-ecdsa" ,python-ecdsa))) + (native-inputs + `(("python-mock" ,python-mock))) + ;; Despite the existence of a test folder there is no test phase. + (arguments + `(#:tests? #f)) + (home-page "https://github.com/ProgVal/Limnoria") + (synopsis "Modified version of Supybot (an IRC bot and framework)") + (description + "Modified version of Supybot with Python 3 and IRCv3 support, +embedded web server, translations (fr, fi, it, hu, de), and many +other enhancements and bug fixes.") + (license license:bsd-3))) =2D-=20 2.10.0 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 ng0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJX3qFIAAoJEAKilhUMIBgjkT8P/2iuQgU1OUJwgY9oHQciGoxA J0mJfPufUGQpvcQD2Y0+7PlugiwwfSmAUMwxSRjREEGtEjR2cgIUE/k6tiQLXdZ5 +kcSx0Fq9LXoCMRyzNu8JwdmT70V9uDf4EZh3ZE6CwA0751PtDRVh6c7/FpcslD6 2j39uuna2yjsAdWnU4luWpJLSuHJutWyVsxnEbkLjcQ3khBd+6igsKbFdRMYDoG3 /aaOOOJQXrv1CZxy0qe8JOqgbqfrTHYRkpkI/TXuJrm71IAfh1LZBF1KoBK/kMLP 5kbN5NSBZXmj4raK7DMOXcGPLd4gBAfbYCke05zH6HeIu3cr9YGUVMfdIfcoxlVW Qf1OJH0rgeZ4jBIFk1dEmnIEI9FgrDimB27ZTIpjc/wlETJUl+6PiPczZP1M++gs 038hVKaKELtW9iPxxx2iItpVRL4bM9lH+XR1T2WrEZ6v541cH8GdhrX3ZdV5rpOs 44yFvbtjbDrpvaqs3MEclH8EJhOOOzQdXYeZtvqm3TzUTzbXtrvBdhsVN7D4ayhA Ui8m3lmCzt5XDomg3cJXOU9g+dauLE9TjRUFo304Wgpqauk188YsfYJjI+WHqiyy QiTD8OegH9xl1v0/YxnT0Uoh6bXbZ6mRgGMth4A/Oz2AJ66jFswDD9OsSwZjyses fxpLjFdLjU9m6b4Z+/QB =/ra6 -----END PGP SIGNATURE----- --==-=-=--