* [PATCH] small patchseries to add the irc bot limnoria.
@ 2016-09-18 14:14 ng0
2016-09-18 15:59 ` Alex Vong
2016-09-20 21:38 ` Leo Famulari
0 siblings, 2 replies; 8+ messages in thread
From: ng0 @ 2016-09-18 14:14 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 72 bytes --]
This is a small patchseries to add the bot limnoria, based on supybot.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-socksipy-branch.patch --]
[-- Type: text/x-patch, Size: 1885 bytes --]
From af018a18d19541d7f86978fe43e960d979344b1c Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
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.
---
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
--- 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))
+(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")
--
2.10.0
[-- Attachment #1.3: 0002-license-Add-freebsd-doc.patch --]
[-- Type: text/x-patch, Size: 1509 bytes --]
From 5118def75e0a97eea5d0f64b64d0977baaec3af7 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 18 Sep 2016 13:57:33 +0000
Subject: [PATCH 2/4] license: Add freebsd-doc.
* guix/licenses.scm (freebsd-doc): New variable.
---
guix/licenses.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/licenses.scm b/guix/licenses.scm
index 265f048..34a34a4 100644
--- a/guix/licenses.scm
+++ b/guix/licenses.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
+;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
;;;
;;; 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 package's tree."
"https://www.gnu.org/licenses/fdl.html"
"https://www.gnu.org/licenses/license-list#FDL"))
+(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/"
--
2.10.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.4: 0003-gnu-Add-python-feedparser.patch --]
[-- Type: text/x-patch, Size: 2029 bytes --]
From ddc2dbcb4308750cad4842ef1730d74dbe3bf4a8 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
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.
---
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
--- 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/")))
+(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")
--
2.10.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.5: 0004-gnu-Add-limnoria.patch --]
[-- Type: text/x-patch, Size: 2538 bytes --]
From 9e378d8d6878ab65ca6afa196901a9b8b8590ea5 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 18 Sep 2016 14:11:20 +0000
Subject: [PATCH 4/4] gnu: Add limnoria.
* gnu/packages/irc.scm (limnoria): New variable.
---
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
--- 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)
- #:use-module (gnu packages tls))
+ #:use-module (gnu packages tls)
+ #:use-module (gnu packages web))
(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)))
--
2.10.0
[-- Attachment #1.6: Type: text/plain, Size: 26 bytes --]
--
ng0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-18 14:14 [PATCH] small patchseries to add the irc bot limnoria ng0
@ 2016-09-18 15:59 ` Alex Vong
2016-09-18 16:17 ` ng0
2016-09-20 21:38 ` Leo Famulari
1 sibling, 1 reply; 8+ messages in thread
From: Alex Vong @ 2016-09-18 15:59 UTC (permalink / raw)
To: ng0; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
Hello,
ng0 <ng0@we.make.ritual.n0.is> writes:
[...]
> + (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)))
> --
> 2.10.0
Perhaps the .travis.yml[0] will give clue on how to run the test?
I haven't tested it yet. My machine is still building Cython.
[0]: https://github.com/ProgVal/Limnoria
Cheers,
Alex
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-18 15:59 ` Alex Vong
@ 2016-09-18 16:17 ` ng0
2016-09-18 16:21 ` ng0
0 siblings, 1 reply; 8+ messages in thread
From: ng0 @ 2016-09-18 16:17 UTC (permalink / raw)
To: Alex Vong; +Cc: guix-devel
Alex Vong <alexvong1995@gmail.com> writes:
> [ Unknown signature status ]
> Hello,
>
> ng0 <ng0@we.make.ritual.n0.is> writes:
>
> [...]
>> + (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)))
>> --
>> 2.10.0
>
> Perhaps the .travis.yml[0] will give clue on how to run the test?
> I haven't tested it yet. My machine is still building Cython.
YOu are right.
Yes, it needs this: https://github.com/ProgVal/irctest and I won't
package this today. I can add a note to limnoria that this must be
packaged to write our own test phase.
> [0]: https://github.com/ProgVal/Limnoria
>
> Cheers,
> Alex
--
ng0
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-18 16:17 ` ng0
@ 2016-09-18 16:21 ` ng0
0 siblings, 0 replies; 8+ messages in thread
From: ng0 @ 2016-09-18 16:21 UTC (permalink / raw)
To: Alex Vong; +Cc: guix-devel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: 0001-gnu-Add-limnoria.patch --]
[-- Type: text/x-patch, Size: 2637 bytes --]
From bab7f6b8f846c006aa91eded335957aa013c83eb Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 18 Sep 2016 14:11:20 +0000
Subject: [PATCH] gnu: Add limnoria.
* gnu/packages/irc.scm (limnoria): New variable.
---
gnu/packages/irc.scm | 40 +++++++++++++++++++++++++++++++++++++++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 1058bef..a72ccb3 100644
--- 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)
- #:use-module (gnu packages tls))
+ #:use-module (gnu packages tls)
+ #:use-module (gnu packages web))
(define-public quassel
(package
@@ -291,3 +293,39 @@ 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.
+ ;; We need to package https://github.com/ProgVal/irctest and write
+ ;; our own testphase.
+ (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)))
--
2.10.0
[-- Attachment #1.2: Type: text/plain, Size: 26 bytes --]
--
ng0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-18 14:14 [PATCH] small patchseries to add the irc bot limnoria ng0
2016-09-18 15:59 ` Alex Vong
@ 2016-09-20 21:38 ` Leo Famulari
2016-09-21 8:33 ` ng0
1 sibling, 1 reply; 8+ messages in thread
From: Leo Famulari @ 2016-09-20 21:38 UTC (permalink / raw)
To: ng0; +Cc: guix-devel
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
On Sun, Sep 18, 2016 at 02:14:32PM +0000, ng0 wrote:
> This is a small patchseries to add the bot limnoria, based on supybot.
Thanks!
> * gnu/packages/python.scm (python-socksipy-branch): New variable.
> + (home-page "http://code.google.com/p/socksipy-branch/")
Error 404.
> +(define-public python2-socksipy-branch
> + (package-with-python2
> + (strip-python2-variant python-socksipy-branch)))
I don't think this needs strip-python2-variant. It should be enough to
use package-with-python2.
> Subject: [PATCH 2/4] license: Add freebsd-doc.
>
> * guix/licenses.scm (freebsd-doc): New variable.
LGTM
> Subject: [PATCH 3/4] gnu: Add python-feedparser.
>
> * gnu/packages/python.scm (python-feedparser): New variable.
LGTM
> Subject: [PATCH 4/4] gnu: Add limnoria.
>
> * gnu/packages/irc.scm (limnoria): New variable.
LGTM. It would be nice to figure out how to run the tests, if they are
meant to be run by distributions.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-20 21:38 ` Leo Famulari
@ 2016-09-21 8:33 ` ng0
2016-09-21 17:22 ` ng0
0 siblings, 1 reply; 8+ messages in thread
From: ng0 @ 2016-09-21 8:33 UTC (permalink / raw)
To: Leo Famulari; +Cc: guix-devel
Leo Famulari <leo@famulari.name> writes:
> [ Unknown signature status ]
> On Sun, Sep 18, 2016 at 02:14:32PM +0000, ng0 wrote:
>> This is a small patchseries to add the bot limnoria, based on supybot.
>
> Thanks!
>
>> * gnu/packages/python.scm (python-socksipy-branch): New variable.
>
>> + (home-page "http://code.google.com/p/socksipy-branch/")
Right, it is now https://code.google.com/archive/p/socksipy-branch/
until Google will finally to decide to shut down yet another product
people relied on.
>
> Error 404.
>
>> +(define-public python2-socksipy-branch
>> + (package-with-python2
>> + (strip-python2-variant python-socksipy-branch)))
>
> I don't think this needs strip-python2-variant. It should be enough to
> use package-with-python2.
I found this failed very often for me. I can try it again.
>> Subject: [PATCH 2/4] license: Add freebsd-doc.
>>
>> * guix/licenses.scm (freebsd-doc): New variable.
>
> LGTM
>
>> Subject: [PATCH 3/4] gnu: Add python-feedparser.
>>
>> * gnu/packages/python.scm (python-feedparser): New variable.
>
> LGTM
>
>> Subject: [PATCH 4/4] gnu: Add limnoria.
>>
>> * gnu/packages/irc.scm (limnoria): New variable.
>
> LGTM. It would be nice to figure out how to run the tests, if they are
> meant to be run by distributions..
--
ng0
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-21 8:33 ` ng0
@ 2016-09-21 17:22 ` ng0
2016-10-03 11:59 ` ng0
0 siblings, 1 reply; 8+ messages in thread
From: ng0 @ 2016-09-21 17:22 UTC (permalink / raw)
To: Leo Famulari; +Cc: guix-devel
[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]
ng0 <ng0@we.make.ritual.n0.is> writes:
> Leo Famulari <leo@famulari.name> writes:
>
>> [ Unknown signature status ]
>> On Sun, Sep 18, 2016 at 02:14:32PM +0000, ng0 wrote:
>>> This is a small patchseries to add the bot limnoria, based on supybot.
>>
>> Thanks!
>>
>>> * gnu/packages/python.scm (python-socksipy-branch): New variable.
>>
>>> + (home-page "http://code.google.com/p/socksipy-branch/")
>
> Right, it is now https://code.google.com/archive/p/socksipy-branch/
> until Google will finally to decide to shut down yet another product
> people relied on.
>
>>
>> Error 404.
>>
>>> +(define-public python2-socksipy-branch
>>> + (package-with-python2
>>> + (strip-python2-variant python-socksipy-branch)))
>>
>> I don't think this needs strip-python2-variant. It should be enough to
>> use package-with-python2.
>
> I found this failed very often for me. I can try it again.
Oh, I meant something different. Just using package-with.. worked.
>>> Subject: [PATCH 2/4] license: Add freebsd-doc.
>>>
>>> * guix/licenses.scm (freebsd-doc): New variable.
>>
>> LGTM
>>
>>> Subject: [PATCH 3/4] gnu: Add python-feedparser.
>>>
>>> * gnu/packages/python.scm (python-feedparser): New variable.
>>
>> LGTM
>>
>>> Subject: [PATCH 4/4] gnu: Add limnoria.
>>>
>>> * gnu/packages/irc.scm (limnoria): New variable.
>>
>> LGTM. It would be nice to figure out how to run the tests, if they are
>> meant to be run by distributions..
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-python-socksipy-branch.patch --]
[-- Type: text/x-patch, Size: 1864 bytes --]
From 4372d38c20abc54070777c605e0946c1ef7cebf1 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
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.
---
gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a186557..896566c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -3731,6 +3731,34 @@ routines such as routines for numerical integration and optimization.")
(define-public python2-scipy
(package-with-python2 python-scipy))
+(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 "https://code.google.com/archive/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 python-socksipy-branch))
+
(define-public python-sqlalchemy
(package
(name "python-sqlalchemy")
--
2.10.0
[-- Attachment #1.3: 0002-license-Add-freebsd-doc.patch --]
[-- Type: text/x-patch, Size: 1505 bytes --]
From 478ea32c2e357f65aa8e89235f674291a17f3317 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 18 Sep 2016 13:57:33 +0000
Subject: [PATCH 2/4] license: Add freebsd-doc.
* guix/licenses.scm (freebsd-doc): New variable.
---
guix/licenses.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/licenses.scm b/guix/licenses.scm
index 265f048..92c120e 100644
--- a/guix/licenses.scm
+++ b/guix/licenses.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
+;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
;;;
;;; 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 package's tree."
"https://www.gnu.org/licenses/fdl.html"
"https://www.gnu.org/licenses/license-list#FDL"))
+(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/"
--
2.10.0
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.4: 0003-gnu-Add-python-feedparser.patch --]
[-- Type: text/x-patch, Size: 2029 bytes --]
From 3a60d3e415e957ea2683cbbf762edc9d256a7dcc Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
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.
---
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
--- 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/")))
+(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")
--
2.10.0
[-- Attachment #1.5: 0004-gnu-Add-limnoria.patch --]
[-- Type: text/x-patch, Size: 3005 bytes --]
From 5bdd00e1c4d900df58d5c52f20042a2c6d6dfd98 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@we.make.ritual.n0.is>
Date: Sun, 18 Sep 2016 14:11:20 +0000
Subject: [PATCH 4/4] gnu: Add limnoria.
* gnu/packages/irc.scm (limnoria): New variable.
---
gnu/packages/irc.scm | 42 ++++++++++++++++++++++++++++++++++++++++--
1 file changed, 40 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
index 1058bef..2e0cd33 100644
--- a/gnu/packages/irc.scm
+++ b/gnu/packages/irc.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2014 Kevin Lemonnier <lemonnierk@ulrar.net>
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
-;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
+;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -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)
- #:use-module (gnu packages tls))
+ #:use-module (gnu packages tls)
+ #:use-module (gnu packages web))
(define-public quassel
(package
@@ -291,3 +293,39 @@ 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.
+ ;; We need to package https://github.com/ProgVal/irctest and write
+ ;; our own testphase.
+ (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)))
--
2.10.0
[-- Attachment #1.6: Type: text/plain, Size: 26 bytes --]
--
ng0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] small patchseries to add the irc bot limnoria.
2016-09-21 17:22 ` ng0
@ 2016-10-03 11:59 ` ng0
0 siblings, 0 replies; 8+ messages in thread
From: ng0 @ 2016-10-03 11:59 UTC (permalink / raw)
To: guix-devel
Hi,
can someone please apply this? I had the impression this was good to
go.
Thanks.
If you lack context or whatever, use the guix-devel archive search
function.
ng0 <ngillmann@runbox.com> writes:
> [ Unknown signature status ]
> ng0 <ng0@we.make.ritual.n0.is> writes:
>
>> Leo Famulari <leo@famulari.name> writes:
>>
>>> [ Unknown signature status ]
>>> On Sun, Sep 18, 2016 at 02:14:32PM +0000, ng0 wrote:
>>>> This is a small patchseries to add the bot limnoria, based on supybot.
>>>
>>> Thanks!
>>>
>>>> * gnu/packages/python.scm (python-socksipy-branch): New variable.
>>>
>>>> + (home-page "http://code.google.com/p/socksipy-branch/")
>>
>> Right, it is now https://code.google.com/archive/p/socksipy-branch/
>> until Google will finally to decide to shut down yet another product
>> people relied on.
>>
>>>
>>> Error 404.
>>>
>>>> +(define-public python2-socksipy-branch
>>>> + (package-with-python2
>>>> + (strip-python2-variant python-socksipy-branch)))
>>>
>>> I don't think this needs strip-python2-variant. It should be enough to
>>> use package-with-python2.
>>
>> I found this failed very often for me. I can try it again.
>
> Oh, I meant something different. Just using package-with.. worked.
>
>>>> Subject: [PATCH 2/4] license: Add freebsd-doc.
>>>>
>>>> * guix/licenses.scm (freebsd-doc): New variable.
>>>
>>> LGTM
>>>
>>>> Subject: [PATCH 3/4] gnu: Add python-feedparser.
>>>>
>>>> * gnu/packages/python.scm (python-feedparser): New variable.
>>>
>>> LGTM
>>>
>>>> Subject: [PATCH 4/4] gnu: Add limnoria.
>>>>
>>>> * gnu/packages/irc.scm (limnoria): New variable.
>>>
>>> LGTM. It would be nice to figure out how to run the tests, if they are
>>> meant to be run by distributions..
>
> From 4372d38c20abc54070777c605e0946c1ef7cebf1 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> 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.
> ---
> gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index a186557..896566c 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -3731,6 +3731,34 @@ routines such as routines for numerical integration and optimization.")
> (define-public python2-scipy
> (package-with-python2 python-scipy))
>
> +(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 "https://code.google.com/archive/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 python-socksipy-branch))
> +
> (define-public python-sqlalchemy
> (package
> (name "python-sqlalchemy")
> --
> 2.10.0
>
> From 478ea32c2e357f65aa8e89235f674291a17f3317 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Sun, 18 Sep 2016 13:57:33 +0000
> Subject: [PATCH 2/4] license: Add freebsd-doc.
>
> * guix/licenses.scm (freebsd-doc): New variable.
> ---
> guix/licenses.scm | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/guix/licenses.scm b/guix/licenses.scm
> index 265f048..92c120e 100644
> --- a/guix/licenses.scm
> +++ b/guix/licenses.scm
> @@ -8,6 +8,7 @@
> ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
> ;;; Copyright © 2016 Fabian Harfert <fhmgufs@web.de>
> ;;; Copyright © 2016 Rene Saavedra <rennes@openmailbox.org>
> +;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
> ;;;
> ;;; 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 package's tree."
> "https://www.gnu.org/licenses/fdl.html"
> "https://www.gnu.org/licenses/license-list#FDL"))
>
> +(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/"
> --
> 2.10.0
>
> From 3a60d3e415e957ea2683cbbf762edc9d256a7dcc Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> 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.
> ---
> 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
> --- 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/")))
>
> +(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")
> --
> 2.10.0
>
> From 5bdd00e1c4d900df58d5c52f20042a2c6d6dfd98 Mon Sep 17 00:00:00 2001
> From: ng0 <ng0@we.make.ritual.n0.is>
> Date: Sun, 18 Sep 2016 14:11:20 +0000
> Subject: [PATCH 4/4] gnu: Add limnoria.
>
> * gnu/packages/irc.scm (limnoria): New variable.
> ---
> gnu/packages/irc.scm | 42 ++++++++++++++++++++++++++++++++++++++++--
> 1 file changed, 40 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/irc.scm b/gnu/packages/irc.scm
> index 1058bef..2e0cd33 100644
> --- a/gnu/packages/irc.scm
> +++ b/gnu/packages/irc.scm
> @@ -3,7 +3,7 @@
> ;;; Copyright © 2014 Kevin Lemonnier <lemonnierk@ulrar.net>
> ;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
> ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il>
> -;;; Copyright © 2016 ng0 <ng0@we.make.ritual.n0.is>
> +;;; Copyright © 2016 ng0 <ngillmann@runbox.com>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -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)
> - #:use-module (gnu packages tls))
> + #:use-module (gnu packages tls)
> + #:use-module (gnu packages web))
>
> (define-public quassel
> (package
> @@ -291,3 +293,39 @@ 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.
> + ;; We need to package https://github.com/ProgVal/irctest and write
> + ;; our own testphase.
> + (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)))
> --
> 2.10.0
>
>
> --
> ng0
--
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-10-03 12:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-18 14:14 [PATCH] small patchseries to add the irc bot limnoria ng0
2016-09-18 15:59 ` Alex Vong
2016-09-18 16:17 ` ng0
2016-09-18 16:21 ` ng0
2016-09-20 21:38 ` Leo Famulari
2016-09-21 8:33 ` ng0
2016-09-21 17:22 ` ng0
2016-10-03 11:59 ` ng0
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).