Re: [PATCH] gnu: Add idle3-tools.

2016-03-03 Thread Leo Famulari
On Fri, Mar 04, 2016 at 04:22:36AM +0100, Tobias Geerinckx-Rice wrote:
> For example, I'm now no longer sure why I added a licence
> namespace nor whether that's a good idea.

I'm not sure either :)

There are licenses and packages both named 'expat' and 'openssl', so
when we need to use both the package and the license of one of those
names in a single module, we must prefix the license. Otherwise the
symbol is ambiguous and the module can't be built.

If that's not the case here, can you resubmit without the license
prefix?

> 
> Now, if you'll excuse me, I need to throw a certain console
> browser out of a very high window.
> 
> On 04/03/2016, Tobias Geerinckx-Rice  wrote:
> > Hallo Guix,
> >
> > Perhaps I should have added that I did run `guix lint'
> > on this without issues.
> >
> > Anyone fancy having a look?
> >
> > T G-R
> >
> 



Re: [PATCH] gnu: btrfs-progs: Update to 4.4.1.

2016-03-03 Thread Leo Famulari
On Fri, Mar 04, 2016 at 04:08:01AM +0100, Tobias Geerinckx-Rice wrote:
> On 28/02/2016, Leo Famulari  wrote:
> > On Sat, Feb 27, 2016 at 10:41:42PM +0200, Efraim Flashner wrote:
> >> On Sat, 27 Feb 2016 01:17:04 +0100
> >> Tobias Geerinckx-Rice  wrote:
> >>
> >> > * gnu/packages/linux.scm (btrfs-progs): Update to 4.4.1.
> >
> >> looks good to me!
> >>
> >> applied in 9c7f7e2d.
> >
> > Thanks for keeping up with this pcakage, Tobias!
> >
> > Have you had a chance to investigate how to include it in the initrd?
> >
> > https://lists.gnu.org/archive/html/guix-devel/2016-02/msg00489.html
> [Lynx won't let me remove lines. Nice. At least I'm on GuixSD]
> 
> Hullo Leo,
> 
> Sorry, not yet. I've had no free time lately. I hope the
> coming week will bring some. Either way, 0.9.1 won't yet
> have much butter in it.
> 
> I'll try writing a static package expression before diving
> into the initrd, which I'm guessing is quite different from
> that of your average Linux distribution...

Okay, feel free to share your work as you go! I'll probably make an
attempt as well, although I can't say exactly when.



GNU Guix diagram

2016-03-03 Thread myglc2
Upon installing GuixSD a month ago I found it difficult to get a grip on
GNU Guix' stucture. Because I like pictures I made a diagram showing
what I think I now understand about how GNU Guix' works. I am thinking
it might be helpful to Guix newcomers. Comments &/or corrections would
be most welcome. - George


gnuguix2.dot
Description: Binary data


Re: [PATCH] gnu: Add idle3-tools.

2016-03-03 Thread Tobias Geerinckx-Rice
For example, I'm now no longer sure why I added a licence
namespace nor whether that's a good idea.

Now, if you'll excuse me, I need to throw a certain console
browser out of a very high window.

On 04/03/2016, Tobias Geerinckx-Rice  wrote:
> Hallo Guix,
>
> Perhaps I should have added that I did run `guix lint'
> on this without issues.
>
> Anyone fancy having a look?
>
> T G-R
>



Re: [PATCH] gnu: Add idle3-tools.

2016-03-03 Thread Tobias Geerinckx-Rice
Hallo Guix,

Perhaps I should have added that I did run `guix lint'
on this without issues.

Anyone fancy having a look?

T G-R



Re: [PATCH] gnu: btrfs-progs: Update to 4.4.1.

2016-03-03 Thread Tobias Geerinckx-Rice
On 28/02/2016, Leo Famulari  wrote:
> On Sat, Feb 27, 2016 at 10:41:42PM +0200, Efraim Flashner wrote:
>> On Sat, 27 Feb 2016 01:17:04 +0100
>> Tobias Geerinckx-Rice  wrote:
>>
>> > * gnu/packages/linux.scm (btrfs-progs): Update to 4.4.1.
>
>> looks good to me!
>>
>> applied in 9c7f7e2d.
>
> Thanks for keeping up with this pcakage, Tobias!
>
> Have you had a chance to investigate how to include it in the initrd?
>
> https://lists.gnu.org/archive/html/guix-devel/2016-02/msg00489.html
[Lynx won't let me remove lines. Nice. At least I'm on GuixSD]

Hullo Leo,

Sorry, not yet. I've had no free time lately. I hope the
coming week will bring some. Either way, 0.9.1 won't yet
have much butter in it.

I'll try writing a static package expression before diving
into the initrd, which I'm guessing is quite different from
that of your average Linux distribution...

Kind regards,

T G-R



Re: [PATCH] gnu: Add Augeas.

2016-03-03 Thread Leo Famulari
On Thu, Mar 03, 2016 at 05:16:05PM +0100, Ricardo Wurmus wrote:
> 
> Ludovic Courtès  writes:
> 
> > Ricardo Wurmus  skribis:
> >
> >> Leo Famulari  writes:
> >>
>  +(build-system gnu-build-system)
>  +;; Marked as "required" in augeas.pc
>  +(propagated-inputs
>  + `(("libxml2" ,libxml2)))
> >
> > I find it clearer to put the comment right below ‘propagated-inputs’.
> >
> >>> Is there really no way to avoid this?
> >>
> >> I don’t know.
> >
> > The problem is that I don’t think it works to put an absolute file name
> > in the ‘Requires’ field of a ‘.pc’ file, so I don’t think we can avoid
> > it unfortunately.
> >
> > However, since Augeas is a library, the propagated input is acceptable:
> > in practice, people probably won’t have it in their main environment,
> > but rather in a ‘guix environment’ thing, or in a dedicated development
> > profile.
> 
> Augeas is both a library and a command line tool.  For a command line
> tool propagation is ugly and I’d like to avoid it.
> 
> What should I best do in this case?

What is the effect of a wrapper compared to propagation? My
understanding is that the wrapped environment is only visible to the
wrapped binary. Is that correct? If so, it seems less intrusive to the
user's profile.

> 
> ~~ Ricardo



Re: [PATCH] gnu: lynx: Support HTTPS (SSL) connections

2016-03-03 Thread Leo Famulari
On Fri, Mar 04, 2016 at 03:37:46AM +0100, tobias.geerinckx.r...@gmail.com wrote:
> From: Tobias Geerinckx-Rice 
> 
> * gnu/packages/lynx.scm (lynx)[inputs]: Add 'openssl'.
> [arguments]: Convert to list; add configure flag for SSL support.

Wow, thanks for this patch!

Can you say if you learned anything else... "interesting" about lynx and
https support?

For example, a couple months ago I was reading our bug reports and saw
an old one about https support in w3m (another console browser). I dug a
little deeper and realized that https support was completely broken by
default. You can see the result in commit 62339e2d493bf87.

So, do you know if lynx is still supporting broken ciphers and
protocols, or if there are other problems of that nature?

Also, what is role of gnutls once this patch is applied? Does lynx need
to refer to both gnutls and openssl?

> ---
>  gnu/packages/lynx.scm | 30 +-
>  1 file changed, 17 insertions(+), 13 deletions(-)
> 
> diff --git a/gnu/packages/lynx.scm b/gnu/packages/lynx.scm
> index 3182b3e..7e1ef1d 100644
> --- a/gnu/packages/lynx.scm
> +++ b/gnu/packages/lynx.scm
> @@ -48,24 +48,28 @@
>("libidn" ,libidn)
>("gnutls" ,gnutls)
>("libgcrypt" ,libgcrypt)
> +  ("openssl" ,openssl)
>("unzip" ,unzip)
>("zlib" ,zlib)
>("gzip" ,gzip)
>("bzip2" ,bzip2)))
>  (arguments
> - `(#:configure-flags '("--with-pkg-config"
> -   "--with-screen=ncurses"
> -   "--with-zlib"
> -   "--with-bzlib"
> -   "--with-gnutls"
> -   ;; "--with-socks5"; XXX TODO
> -   "--enable-widec"
> -   "--enable-ascii-ctypes"
> -   "--enable-local-docs"
> -   "--enable-htmlized-cfg"
> -   "--enable-gzip-help"
> -   "--enable-nls"
> -   "--enable-ipv6")
> + `(#:configure-flags
> +   (list "--with-pkg-config"
> + "--with-screen=ncurses"
> + "--with-zlib"
> + "--with-bzlib"
> + "--with-gnutls"
> + (string-append "--with-ssl="
> +(assoc-ref %build-inputs "openssl"))
> + ;; "--with-socks5"; XXX TODO
> + "--enable-widec"
> + "--enable-ascii-ctypes"
> + "--enable-local-docs"
> + "--enable-htmlized-cfg"
> + "--enable-gzip-help"
> + "--enable-nls"
> + "--enable-ipv6")
> #:tests? #f  ; no check target
> #:phases (alist-replace
>   'install
> -- 
> 2.6.3
> 
> 



[PATCH] gnu: lynx: Support HTTPS (SSL) connections

2016-03-03 Thread tobias . geerinckx . rice
From: Tobias Geerinckx-Rice 

* gnu/packages/lynx.scm (lynx)[inputs]: Add 'openssl'.
[arguments]: Convert to list; add configure flag for SSL support.
---
 gnu/packages/lynx.scm | 30 +-
 1 file changed, 17 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/lynx.scm b/gnu/packages/lynx.scm
index 3182b3e..7e1ef1d 100644
--- a/gnu/packages/lynx.scm
+++ b/gnu/packages/lynx.scm
@@ -48,24 +48,28 @@
   ("libidn" ,libidn)
   ("gnutls" ,gnutls)
   ("libgcrypt" ,libgcrypt)
+  ("openssl" ,openssl)
   ("unzip" ,unzip)
   ("zlib" ,zlib)
   ("gzip" ,gzip)
   ("bzip2" ,bzip2)))
 (arguments
- `(#:configure-flags '("--with-pkg-config"
-   "--with-screen=ncurses"
-   "--with-zlib"
-   "--with-bzlib"
-   "--with-gnutls"
-   ;; "--with-socks5"; XXX TODO
-   "--enable-widec"
-   "--enable-ascii-ctypes"
-   "--enable-local-docs"
-   "--enable-htmlized-cfg"
-   "--enable-gzip-help"
-   "--enable-nls"
-   "--enable-ipv6")
+ `(#:configure-flags
+   (list "--with-pkg-config"
+ "--with-screen=ncurses"
+ "--with-zlib"
+ "--with-bzlib"
+ "--with-gnutls"
+ (string-append "--with-ssl="
+(assoc-ref %build-inputs "openssl"))
+ ;; "--with-socks5"; XXX TODO
+ "--enable-widec"
+ "--enable-ascii-ctypes"
+ "--enable-local-docs"
+ "--enable-htmlized-cfg"
+ "--enable-gzip-help"
+ "--enable-nls"
+ "--enable-ipv6")
#:tests? #f  ; no check target
#:phases (alist-replace
  'install
-- 
2.6.3




Exim security update

2016-03-03 Thread Leo Famulari
I just updated Exim from 4.86 to 4.86.2, fixing CVE-2016-1531 [0].

"All installations having Exim set-uid root and using 'perl_startup' are
vulnerable to a local privilege escalation. Any user who can start an
instance of Exim (and this is normally *any* user) can gain root
privileges. If you do not use 'perl_startup' you *should* be safe." [1]

According to upstream, the changes may break existing installations.
Please read their announcement [1] for more details.

[0]
http://seclists.org/oss-sec/2016/q1/501
https://bugzilla.redhat.com/show_bug.cgi?id=1314293
https://security-tracker.debian.org/tracker/CVE-2016-1531
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-1531

[1]
https://lists.exim.org/lurker/message/20160302.191005.a72d8433.en.html



[PATCH 11/13] gnu: Add python2-unicodecsv.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python2-unicodecsv): New variable.
---
 gnu/packages/python.scm | 27 +++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ac82a09..ce7d777 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8338,3 +8338,30 @@ encoding algorithms to do fuzzy string matching.")
   (native-inputs `(("python2-setuptools" ,python2-setuptools)
("python2-unicodecsv" ,python2-unicodecsv)
,@(package-native-inputs jellyfish))
+
+(define-public python2-unicodecsv
+  (package
+(name "python2-unicodecsv")
+(version "0.14.1")
+(source (origin
+ (method url-fetch)
+ ;; The test suite is not included in the PyPi release.
+ ;; https://github.com/jdunck/python-unicodecsv/issues/19
+ (uri (string-append "https://github.com/jdunck/python-unicodecsv/;
+ "archive/" version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+  (base32
+   "087nqanfcyp6mlfbbr5lva5f3w6iz1bybls9xlrb8icmc474wh4w"
+(build-system python-build-system)
+(arguments
+ `(;; It supports Python 3, but Python 3 can already do Unicode CSV.
+   #:python ,python-2))
+(native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+   ("python2-unittest2" ,python2-unittest2)))
+(home-page "https://github.com/jdunck/python-unicodecsv;)
+(synopsis "Unicode CSV module for Python 2")
+(description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
+module, adding support for Unicode strings.")
+(license bsd-2)))
-- 
2.6.3




[PATCH 12/13] gnu: Add python-rarfile.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-rarfile, python2-rarfile): New
variables.
* gnu/packages/patches/python-rarfile-fix-tests.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
---
 gnu-system.am  |  1 +
 .../patches/python-rarfile-fix-tests.patch | 14 ++
 gnu/packages/python.scm| 32 ++
 3 files changed, 47 insertions(+)
 create mode 100644 gnu/packages/patches/python-rarfile-fix-tests.patch

diff --git a/gnu-system.am b/gnu-system.am
index 46e5b11..30a3f58 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -681,6 +681,7 @@ dist_patch_DATA =   
\
   gnu/packages/patches/python-disable-ssl-test.patch   \
   gnu/packages/patches/python-fix-tests.patch  \
   gnu/packages/patches/python-ipython-inputhook-ctype.patch\
+  gnu/packages/patches/python-rarfile-fix-tests.patch  \
   gnu/packages/patches/python2-rdflib-drop-sparqlwrapper.patch \
   gnu/packages/patches/python-configobj-setuptools.patch   \
   gnu/packages/patches/python-paste-remove-website-test.patch  \
diff --git a/gnu/packages/patches/python-rarfile-fix-tests.patch 
b/gnu/packages/patches/python-rarfile-fix-tests.patch
new file mode 100644
index 000..8ae8894
--- /dev/null
+++ b/gnu/packages/patches/python-rarfile-fix-tests.patch
@@ -0,0 +1,14 @@
+There is no test.sh, but there are test1.sh and test2.sh.
+
+diff --git a/test/Makefile b/test/Makefile
+index 027bc5f..5383db3 100644
+--- a/test/Makefile
 b/test/Makefile
+@@ -1,5 +1,6 @@
+ test:
+-  ./test.sh
++  ./test1.sh
++  ./test2.sh
+ 
+ clean:
+   rm -rf __pycache__
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ce7d777..fa021c7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8365,3 +8365,35 @@ encoding algorithms to do fuzzy string matching.")
 (description "Unicodecsv is a drop-in replacement for Python 2.7's CSV
 module, adding support for Unicode strings.")
 (license bsd-2)))
+
+(define-public python-rarfile
+  (package
+(name "python-rarfile")
+(version "2.7")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "rarfile" version))
+  (sha256
+   (base32
+"0d8n1dlpiz7av8dmbp0vclrwl9cnxizr4f2c9xvj1h5nvn480527"))
+  ;; https://github.com/markokr/rarfile/pull/17/
+  (patches (list (search-patch 
"python-rarfile-fix-tests.patch")
+(build-system python-build-system)
+(arguments
+ '(#:phases
+   (modify-phases %standard-phases
+ (replace 'check
+   ;; Many tests fail, but the installation proceeds.
+   (lambda _ (zero? (system* "make" "-C" "test" "test")))
+(native-inputs
+ `(("which" ,which))) ; required for tests
+(propagated-inputs
+ `(("libarchive" ,libarchive)))
+(home-page "https://github.com/markokr/rarfile;)
+(synopsis "RAR archive reader for Python")
+(description "This is Python module for RAR archive reading. The interface
+is made as zipfile like as possible.")
+(license isc)))
+
+(define-public python2-rarfile
+  (package-with-python2 python-rarfile))
-- 
2.6.3




[PATCH 07/13] gnu: Add python-responses.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-responses, python2-responses): New variables.
---
 gnu/packages/python.scm | 32 
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b597952..e9969f4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8244,3 +8244,35 @@ presume or force a developer to use a particular tool or 
library.")
   (package (inherit (package-with-python2
  (strip-python2-variant python-flask)))
 (native-inputs `(("python2-setuptools" ,python2-setuptools)
+
+(define-public python-responses
+  (package
+(name "python-responses")
+(version "0.3.0")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "responses" version))
+  (sha256
+   (base32
+"0fy497jcapmh83ifcj8fnsljfha7r1ldn775p1vvcqzpphavjpkc"
+(build-system python-build-system)
+(arguments
+ `(#:tests? #f)) ; Test suite fails. Debian disables it.
+(native-inputs
+ `(("python-mock" ,python-mock)))
+(propagated-inputs
+ `(("python-requests" ,python-requests)
+   ("python-six" ,python-six)))
+(home-page "https://github.com/getsentry/responses;)
+(synopsis "A utility for mocking out the `requests` Python library.")
+(description "A utility library for mocking out the `requests` Python
+library.")
+(license asl2.0)
+(properties `((python2-variant . ,(delay python2-responses))
+
+(define-public python2-responses
+  (let ((responses (package-with-python2
+(strip-python2-variant python-responses
+(package (inherit responses)
+  (native-inputs `(("python2-setuptools" ,python2-setuptools)
+   ,@(package-native-inputs responses))
-- 
2.6.3




[PATCH 09/13] gnu: Add python-mpd2.

2016-03-03 Thread Leo Famulari
* gnu/packages/mpd.scm (python-mpd2, python2-mpd2): New variables.
---
 gnu/packages/mpd.scm | 33 +
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/mpd.scm b/gnu/packages/mpd.scm
index 5a63772..27b3061 100644
--- a/gnu/packages/mpd.scm
+++ b/gnu/packages/mpd.scm
@@ -28,6 +28,7 @@
   #:use-module (guix download)
   #:use-module (guix utils)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system python)
   #:use-module (gnu packages avahi)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages icu4c)
@@ -40,6 +41,7 @@
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages python)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages pulseaudio)
   #:use-module (gnu packages databases)
@@ -240,3 +242,34 @@ information about tracks being played to a scrobbler, such 
as Libre.FM.")
 ;; instead.
 (home-page "http://mpd.wikia.com/wiki/Client:Mpdscribble;)
 (license license:gpl2+)))
+
+(define-public python-mpd2
+  (package
+(name "python-mpd2")
+(version "0.5.5")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "python-mpd2" version))
+  (sha256
+   (base32
+"0laypd7h1j14b4vrmiayqlzdsh2j5hc3zv4l0fqvbrbw9y6763ii"
+(build-system python-build-system)
+(arguments
+ '(#:phases
+   (modify-phases %standard-phases
+ (replace 'check
+   (lambda _ (zero? (system* "python" "mpd_test.py")))
+(native-inputs `(("python-mock" ,python-mock)))
+(home-page "https://github.com/Mic92/python-mpd2;)
+(synopsis "A Python MPD client library")
+(description "Python-mpd2 is a Python library which provides a client
+interface for the Music Player Daemon.")
+(license license:lgpl3+)
+(properties `((python2-variant . ,(delay python2-mpd2))
+
+(define-public python2-mpd2
+  (let ((mpd2 (package-with-python2
+   (strip-python2-variant python-mpd2
+(package (inherit mpd2)
+  (native-inputs `(("python2-setuptools" ,python2-setuptools)
+   ,@(package-native-inputs mpd2))
-- 
2.6.3




[PATCH 10/13] gnu: Add python-jellyfish.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-jellyfish, python2-jellyfish): New variables.
---
 gnu/packages/python.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b148c7c..ac82a09 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8310,3 +8310,31 @@ ambiguities (forward vs. backward slashes, etc.).
 
 (define-public python2-pathlib
   (package-with-python2 python-pathlib))
+
+(define-public python-jellyfish
+  (package
+(name "python-jellyfish")
+(version "0.5.2")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "jellyfish" version))
+  (sha256
+   (base32
+"15xk0kbr1gig9r1mp22lk9mk3jyi886h8ywn9diixhnyl4q6dacn"
+(build-system python-build-system)
+(native-inputs
+ `(("python-pytest" ,python-pytest)))
+(home-page "http://github.com/jamesturk/jellyfish;)
+(synopsis "Approximate and phonetic matching of strings.")
+(description "Jellyfish uses a variety of string comparison and phonetic
+encoding algorithms to do fuzzy string matching.")
+(license bsd-2)
+(properties `((python2-variant . ,(delay python2-jellyfish))
+
+(define-public python2-jellyfish
+  (let ((jellyfish (package-with-python2
+ (strip-python2-variant python-jellyfish
+(package (inherit jellyfish)
+  (native-inputs `(("python2-setuptools" ,python2-setuptools)
+   ("python2-unicodecsv" ,python2-unicodecsv)
+   ,@(package-native-inputs jellyfish))
-- 
2.6.3




[PATCH 13/13] gnu: Add beets.

2016-03-03 Thread Leo Famulari
* gnu/packages/music.scm (beets): New variable.
---
 gnu/packages/music.scm | 48 
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 4959f3b..2369442 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -50,6 +50,7 @@
   #:use-module (gnu packages fltk)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages gettext)
@@ -65,6 +66,7 @@
   #:use-module (gnu packages linux) ; for alsa-utils
   #:use-module (gnu packages man)
   #:use-module (gnu packages mp3)
+  #:use-module (gnu packages mpd)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages netpbm)
   #:use-module (gnu packages pdf)
@@ -1253,3 +1255,49 @@ websites such as Libre.fm.")
   (native-inputs
`(("python2-setuptools" ,python2-setuptools)
  ,@(package-native-inputs pylast))
+
+(define-public beets
+  (package
+(name "beets")
+(version "1.3.17")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri name version))
+  (sha256
+   (base32
+"0yg7sp18sdpszkinhb0bi6yinbn316jy1baxrwiw0m4byrj3rr6c"
+(build-system python-build-system)
+(arguments
+ `(#:python ,python-2 ; only Python 2 is supported
+   #:phases
+   (modify-phases %standard-phases
+ (add-after 'unpack 'set-HOME
+   (lambda _ (setenv "HOME" (string-append (getcwd) "/tmp")))
+(native-inputs
+ `(("python2-beautifulsoup4" ,python2-beautifulsoup4)
+   ("python2-flask" ,python2-flask)
+   ("python2-setuptools" ,python2-setuptools)
+   ("python2-mock" ,python2-mock)
+   ("python2-mpd2" ,python2-mpd2)
+   ("python2-pathlib" ,python2-pathlib)
+   ("python2-pyxdg" ,python2-pyxdg)
+   ("python2-pyechonest" ,python2-pyechonest)
+   ("python2-pylast" ,python2-pylast)
+   ("python2-rarfile" ,python2-rarfile)
+   ("python2-responses" ,python2-responses)))
+;; TODO: Install optional plugins and dependencies.
+(propagated-inputs
+ `(("python2-enum34" ,python2-enum34)
+   ("python2-jellyfish" ,python2-jellyfish)
+   ("python2-munkres" ,python2-munkres)
+   ("python2-musicbrainzngs" ,python2-musicbrainzngs)
+   ("python2-mutagen" ,python2-mutagen)
+   ("python2-pyyaml" ,python2-pyyaml)
+   ("python2-unidecode" ,python2-unidecode)))
+(home-page "http://beets.io;)
+(synopsis "Music organizer")
+(description "The purpose of beets is to get your music collection right
+once and for all. It catalogs your collection, automatically improving its
+metadata as it goes using the MusicBrainz database. Then it provides a variety
+of tools for manipulating and accessing your music.")
+(license license:expat)))
-- 
2.6.3




[PATCH 08/13] gnu: Add python2-pathlib.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-pathlib, python2-pathlib): New variables.
---
 gnu/packages/python.scm | 34 ++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e9969f4..b148c7c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8276,3 +8276,37 @@ library.")
 (package (inherit responses)
   (native-inputs `(("python2-setuptools" ,python2-setuptools)
,@(package-native-inputs responses))
+
+(define-public python-pathlib
+  (package
+(name "python-pathlib")
+(version "1.0.1")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "pathlib" version))
+  (sha256
+   (base32
+"17zajiw4mjbkkv6ahp3xf025qglkj0805m9s41c45zryzj6p2h39"
+(build-system python-build-system)
+(arguments
+ `(#:phases
+   (modify-phases %standard-phases
+ (replace 'check
+   (lambda _ (zero? (system* "python" "./test_pathlib.py")))
+(home-page "https://pathlib.readthedocs.org/;)
+(synopsis "Object-oriented filesystem paths")
+(description "Pathlib offers a set of classes to handle filesystem paths.
+It offers the following advantages over using string objects:
+
+@enumerate
+@item No more cumbersome use of os and os.path functions. Everything can
+be done easily through operators, attribute accesses, and method calls.
+@item Embodies the semantics of different path types. For example,
+comparing Windows paths ignores casing.
+@item Well-defined semantics, eliminating any inconsistencies or
+ambiguities (forward vs. backward slashes, etc.).
+@end enumerate\n")
+(license license:expat)))
+
+(define-public python2-pathlib
+  (package-with-python2 python-pathlib))
-- 
2.6.3




[PATCH 01/13] gnu: Add python-mutagen.

2016-03-03 Thread Leo Famulari
* gnu/packages/music.scm (python-mutagen, python2-mutagen): New variables.
---
 gnu/packages/music.scm | 26 ++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index d789cc3..f8d88c1 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -4,6 +4,7 @@
 ;;; Copyright © 2015 Paul van der Walt 
 ;;; Copyright © 2016 Al McElrath 
 ;;; Copyright © 2016 Efraim Flashner 
+;;; Copyright © 2016 Leo Famulari 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1134,3 +1135,28 @@ personalized online radio pandora.com.  It has 
configurable keys for playing
 and managing stations, can be controlled remotely via fifo, and can run
 event-based scripts for scrobbling, notifications, etc.")
 (license license:expat)))
+
+(define-public python-mutagen
+  (package
+(name "python-mutagen")
+(version "1.31")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "mutagen" version))
+  (sha256
+   (base32
+"16fnnhspniac2i7qswxafawsh2x2a803hmc6bn9k1zl5fxq1380a"
+(build-system python-build-system)
+(home-page "https://bitbucket.org/lazka/mutagen;)
+(synopsis "Read and write audio tags.")
+(description "Mutagen is a Python module to handle audio metadata.  It
+supports ASF, FLAC, M4A, Monkey’s Audio, MP3, Musepack, Ogg FLAC, Ogg Speex, 
Ogg
+Theora, Ogg Vorbis, True Audio, WavPack and OptimFROG audio files.  All 
versions
+of ID3v2 are supported, and all standard ID3v2.4 frames are parsed.  It can 
read
+Xing headers to accurately calculate the bitrate and length of MP3s.  ID3 and
+APEv2 tags can be edited regardless of audio format.  It can also manipulate 
Ogg
+streams on an individual packet/page level.")
+(license license:gpl2))) ; "later version" never mentioned
+
+(define-public python2-mutagen
+  (package-with-python2 python-mutagen))
-- 
2.6.3




[PATCH 00/13] Add beets and its dependencies

2016-03-03 Thread Leo Famulari
These patches add beets [0] and its dependencies.

While beets has a rich ecosystem of plugins and optional features [1],
this package creates a minimal beets that offers the core feature: to
organize your music files based on their tags.

Of course, whoever wants to add those plugins is welcome to do so!

[0]
http://beets.io/

[1]
http://beets.readthedocs.org/en/v1.3.17/plugins/

Leo Famulari (13):
  gnu: Add python-mutagen.
  gnu: Add python-munkres.
  gnu: Add python-musicbrainzngs.
  gnu: Add python-flask.
  gnu: Add python-pyechonest.
  gnu: Add python-pylast.
  gnu: Add python-responses.
  gnu: Add python2-pathlib.
  gnu: Add python-mpd2.
  gnu: Add python-jellyfish.
  gnu: Add python2-unicodecsv.
  gnu: Add python-rarfile.
  gnu: Add beets.

 gnu-system.am  |   1 +
 gnu/packages/mpd.scm   |  33 
 gnu/packages/music.scm | 167 +
 .../patches/python-rarfile-fix-tests.patch |  14 ++
 gnu/packages/python.scm| 204 +
 5 files changed, 419 insertions(+)
 create mode 100644 gnu/packages/patches/python-rarfile-fix-tests.patch

-- 
2.6.3




[PATCH 06/13] gnu: Add python-pylast.

2016-03-03 Thread Leo Famulari
* gnu/packages/music.scm (python-pylast, python2-pylast): New variables.
---
 gnu/packages/music.scm | 35 +++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index cd5fcb1..4959f3b 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1218,3 +1218,38 @@ detailed track info including timbre, pitch, rhythm and 
loudness information.
   (package (inherit (package-with-python2
  (strip-python2-variant python-pyechonest)))
 (native-inputs `(("python2-setuptools" ,python2-setuptools)
+
+(define-public python-pylast
+  (package
+(name "python-pylast")
+(version "1.5.1")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "pylast" version))
+  (sha256
+   (base32
+"10znd9xr1vs2ix519jkz3ccm90zciaddcdr2w2wrrh2jyy3bc59a"
+(build-system python-build-system)
+(native-inputs
+ `(("python-coverage" ,python-coverage)
+   ("python-mock" ,python-mock)
+   ("python-pep8" ,python-pep8)
+   ("python-pytest" ,python-pytest)
+   ("python-pyflakes" ,python-pyflakes)
+   ("python-pyyaml" ,python-pyyaml)))
+(propagated-inputs
+ `(("python-six" ,python-six)))
+(home-page "https://github.com/pylast/pylast;)
+(synopsis "A Python interface to Last.fm and Libre.fm")
+(description "A Python interface to Last.fm and other API-compatible
+websites such as Libre.fm.")
+(license license:asl2.0)
+(properties `((python2-variant . ,(delay python2-pylast))
+
+(define-public python2-pylast
+  (let ((pylast (package-with-python2
+ (strip-python2-variant python-pylast
+(package (inherit pylast)
+  (native-inputs
+   `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs pylast))
-- 
2.6.3




[PATCH 03/13] gnu: Add python-musicbrainzngs.

2016-03-03 Thread Leo Famulari
* gnu/packages/music.scm (python-musicbrainzngs, python2-musicbrainzngs): New
variables.
---
 gnu/packages/music.scm | 22 ++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index f8d88c1..1ad328e 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -1160,3 +1160,25 @@ streams on an individual packet/page level.")
 
 (define-public python2-mutagen
   (package-with-python2 python-mutagen))
+
+(define-public python-musicbrainzngs
+  (package
+(name "python-musicbrainzngs")
+(version "0.5")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "musicbrainzngs" version))
+  (sha256
+   (base32
+"12f48llmdf5rkiqxcb70k2k1dmhm8byq0ifazvlrca8dfnmqh4r8"
+(build-system python-build-system)
+(home-page "https://python-musicbrainzngs.readthedocs.org/;)
+(synopsis "Python bindings for MusicBrainz NGS webservice")
+(description "Musicbrainzngs implements Python bindings of the MusicBrainz
+web service.  This library can be used to retrieve music metadata from the
+MusicBrainz database.")
+;; 'musicbrainzngs/compat.py' is ISC licensed.
+(license (list license:bsd-2 license:isc
+
+(define-public python2-musicbrainzngs
+  (package-with-python2 python-musicbrainzngs))
-- 
2.6.3




[PATCH 04/13] gnu: Add python-flask.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-flask, python2-flask): New variables.
---
 gnu/packages/python.scm | 28 
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index da2c67c..b597952 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8216,3 +8216,31 @@ useful for solving the Assignment Problem.")
 
 (define-public python2-munkres
   (package-with-python2 python-munkres))
+
+(define-public python-flask
+  (package
+(name "python-flask")
+(version "0.10.1")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "Flask" version))
+  (sha256
+   (base32
+"0wrkavjdjndknhp8ya8j850jq7a1cli4g5a93mg8nh1xz2gq50sc"
+(build-system python-build-system)
+(propagated-inputs
+ `(("python-itsdangerous" ,python-itsdangerous)
+   ("python-jinja2" ,python-jinja2)
+   ("python-werkzeug" ,python-werkzeug)))
+(home-page "http://github.com/mitsuhiko/flask/;)
+(synopsis "A microframework based on Werkzeug, Jinja2 and good intentions")
+(description "Flask is a micro web framework based on the Werkzeug toolkit
+and Jinja2 template engine.  It is called a micro framework because it does not
+presume or force a developer to use a particular tool or library.")
+(license bsd-3)
+(properties `((python2-variant . ,(delay python2-flask))
+
+(define-public python2-flask
+  (package (inherit (package-with-python2
+ (strip-python2-variant python-flask)))
+(native-inputs `(("python2-setuptools" ,python2-setuptools)
-- 
2.6.3




[PATCH 02/13] gnu: Add python-munkres.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-munkres, python2-munkres): New variables.
---
 gnu/packages/python.scm | 23 +++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 131ec62..da2c67c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8193,3 +8193,26 @@ introspection of @code{zope.interface} instances in 
code.")
 (inherit (package-with-python2
   (strip-python2-variant python-psycopg2)))
 (native-inputs `(("python2-setuptools" ,python2-setuptools)
+
+(define-public python-munkres
+  (package
+(name "python-munkres")
+(version "1.0.7")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "munkres" version))
+  (sha256
+   (base32
+"1i6nf45i0kkzdx6k70giybsqxz4dxsjbrkrfqgjd7znfkf25sjik"
+(build-system python-build-system)
+(arguments
+ '(#:tests? #f)) ; no test suite
+(home-page "http://software.clapper.org/munkres/;)
+(synopsis "Implementation of the Munkres algorithm")
+(description "The Munkres module provides an implementation of the Munkres
+algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm),
+useful for solving the Assignment Problem.")
+(license bsd-3)))
+
+(define-public python2-munkres
+  (package-with-python2 python-munkres))
-- 
2.6.3




Re: Server for Guix Hydra/Slave ?

2016-03-03 Thread Nils Gillmann
Nils Gillmann  writes:

> So a friend is about to drop one of his dedicated servers, and we
> are discussing what to do with it... another tor relay, some
> other project, and I had the idea, wel maybe we could use it?
>
> It's a 36€ / year server (I don't believe in the security of OVH,
> but others say it's okay, I personally favor in-berlin.de over
> most providers I had), specs:
> Mainboard Intel Corporation DN2800MT CPU Intel(R) Atom(TM) CPU
> N2800 @ 1.86GHz Cores : 4 Cache : 512 KB Speed : 1862 MHz RAM 1 x
> 2048 MB
> Atom™ N2800 640 346 2c / 4t  1.86 GHz+ 2 GB 500 GB 100 Mbit/s /128
>
> Somewhere around 100 or 150 MB/s in connection if I read the
> conversation right.
>
>
> What do you think?

If this inital post was written a bit strange and off in words,
what I meant to express was: hey, look. I got a server with
uncapped bandwidth, these specs, I could maybe (not sure about
the specifics as I am not an ovh customer myself yet) get more
disks if needed, setup any OS I want and offer it to us (Guix) as
a third mirror, hydra slave, or whatever you can think off we
need right now the most. I guess it is physically located in
France.


-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en




Re: Server for Guix Hydra/Slave ?

2016-03-03 Thread Nils Gillmann
Addition: no limitations in bandwidth per month.
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en




Server for Guix Hydra/Slave ?

2016-03-03 Thread Nils Gillmann
So a friend is about to drop one of his dedicated servers, and we
are discussing what to do with it... another tor relay, some
other project, and I had the idea, wel maybe we could use it?

It's a 36€ / year server (I don't believe in the security of OVH,
but others say it's okay, I personally favor in-berlin.de over
most providers I had), specs:
Mainboard Intel Corporation DN2800MT CPU Intel(R) Atom(TM) CPU
N2800 @ 1.86GHz Cores : 4 Cache : 512 KB Speed : 1862 MHz RAM 1 x
2048 MB
Atom™ N2800 640 346 2c / 4t  1.86 GHz+ 2 GB 500 GB 100 Mbit/s /128

Somewhere around 100 or 150 MB/s in connection if I read the
conversation right.


What do you think?
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en




Re: [PATCH] gnu: Add powwow.

2016-03-03 Thread Nils Gillmann
Okay.

Should I resubmit the patch, or can you work it out on the basis
of this patch?

thanks,
-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en




Re: [PATCH 5/5] gnu: Add khard.

2016-03-03 Thread Leo Famulari
On Thu, Mar 03, 2016 at 05:11:56PM -0500, Leo Famulari wrote:
> * gnu/packages/mail.scm (khard): New variable.
> +(description "Khard is an address book for the console.  It creates, 
> reads,
> +modifies and removes CardDAV address book entries at your local machine.  For
> +synchronizing with a remote address book, @command{vdirsyncer} is 
> recommended.
> +Khard can also be used from within the email client @command{mutt}.")

Is this an appropriate use of texinfo?

> +(home-page "https://github.com/scheibler/khard;)
> +(license gpl3))) ; "later version" never mentioned
> -- 
> 2.6.3
> 
> 



[PATCH 0/5] Add Khard and dependencies

2016-03-03 Thread Leo Famulari
These patches add the command-line address book Khard and its
dependencies.

I use it as described here: .

I also took the opportunity to update python2-pyicu and create both
Python variants. The warnings in the old python2-pyicu definition seem
to no longer apply.

Leo Famulari (5):
  gnu: Add python2-atomicwrites.
  gnu: python2-pyicu: Update to 1.9.2.
  gnu: Split python2-pyicu into python-pyicu and python2-pyicu.
  gnu: Add python-vobject.
  gnu: Add khard.

 gnu/packages/mail.scm   | 47 +++---
 gnu/packages/python.scm | 60 -
 2 files changed, 94 insertions(+), 13 deletions(-)

-- 
2.6.3




[PATCH 3/5] gnu: Split python2-pyicu into python-pyicu and python2-pyicu.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python2-pyicu): Split variable into...
(python-pyicu, python2-pyicu): ...both Python variants.
(python-pyicu)[arguments]: Enable tests.
---
 gnu/packages/python.scm | 17 ++---
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index f168d15..b168183 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1133,9 +1133,9 @@ Python 3.3+.")
   (package-with-python2 python-simplejson))
 
 
-(define-public python2-pyicu
+(define-public python-pyicu
   (package
-(name "python2-pyicu")
+(name "python-pyicu")
 (version "1.9.2")
 (source
  (origin
@@ -1148,15 +1148,18 @@ Python 3.3+.")
 (build-system python-build-system)
 (inputs
  `(("icu4c" ,icu4c)))
-(arguments
- `(#:python ,python-2 ; Python 3 works also, but needs special care for
-  ; linking with libpython3.3m
-   #:tests? #f)) ; no check target
 (home-page "http://pyicu.osafoundation.org/;)
 (synopsis "Python extension wrapping the ICU C++ API")
 (description
  "PyICU is a python extension wrapping the ICU C++ API.")
-(license x11)))
+(license x11)
+(properties `((python2-variant . ,(delay python2-pyicu))
+
+(define-public python2-pyicu
+  (package
+(inherit (package-with-python2
+  (strip-python2-variant python-pyicu)))
+(native-inputs `(("python2-setuptools" ,python2-setuptools)
 
 (define-public python2-dogtail
   ;; Python 2 only, as it leads to "TabError: inconsistent use of tabs and
-- 
2.6.3




[PATCH 5/5] gnu: Add khard.

2016-03-03 Thread Leo Famulari
* gnu/packages/mail.scm (khard): New variable.
---
 gnu/packages/mail.scm | 47 ---
 1 file changed, 44 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 013954b..a34a4de 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -71,8 +71,8 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module ((guix licenses)
-#:select (gpl2 gpl2+ gpl3+ lgpl2.1 lgpl2.1+ lgpl3+ non-copyleft
-  (expat . license:expat)))
+#:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+
+   non-copyleft (expat . license:expat)))
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
@@ -1150,5 +1150,46 @@ maintained.")
   ;; nonfree Artistic License 1.0
   ;; as alternative to the GPL2+.
   ;; This option is not listed here.
-;;; mail.scm ends here
 
+(define-public khard
+  (package
+(name "khard")
+(version "0.8.1")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri name version))
+  (sha256
+   (base32
+"098gs94qmnspdfn6ar8lycx7dbsz9bcff90aps0cmn47mw7llch0"
+(build-system python-build-system)
+(arguments
+  `(#:python ,python-2 ; only python-2 is supported.
+#:phases
+(modify-phases %standard-phases
+  (add-before 'build 'disable-egg-compression
+;; Do not compress the egg.
+(lambda _
+  (let ((port (open-file "setup.cfg" "a")))
+(display "\n[easy_install]\nzip_ok = 0\n"
+ port)
+(close-port port)
+#t)))
+  (add-after 'install 'install-doc
+(lambda* (#:key outputs #:allow-other-keys)
+  (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/khard")))
+(copy-recursively "misc/khard" doc)))
+(native-inputs
+ `(("python2-setuptools" ,python2-setuptools)))
+(propagated-inputs
+ `(("python2-vobject" ,python2-vobject)
+   ("python2-pyyaml" ,python2-pyyaml)
+   ("python2-atomicwrites" ,python2-atomicwrites)
+   ("python2-configobj" ,python2-configobj)))
+(synopsis "Console address book using CardDAV")
+(description "Khard is an address book for the console.  It creates, reads,
+modifies and removes CardDAV address book entries at your local machine.  For
+synchronizing with a remote address book, @command{vdirsyncer} is recommended.
+Khard can also be used from within the email client @command{mutt}.")
+(home-page "https://github.com/scheibler/khard;)
+(license gpl3))) ; "later version" never mentioned
-- 
2.6.3




[PATCH 4/5] gnu: Add python-vobject.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python-vobject, python2-vobject): New variables.
---
 gnu/packages/python.scm | 30 ++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b168183..6d92b67 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8203,3 +8203,33 @@ introspection of @code{zope.interface} instances in 
code.")
 (inherit (package-with-python2
   (strip-python2-variant python-psycopg2)))
 (native-inputs `(("python2-setuptools" ,python2-setuptools)
+
+(define-public python-vobject
+  (package
+(name "python-vobject")
+(version "0.9.1")
+(source (origin
+  (method url-fetch)
+  (uri (pypi-uri "vobject" version))
+  (sha256
+   (base32
+"1cwzjnrdr9yg2x21wbf3kf59ibnchvj33mygd69yzi178a9gs9gz"
+(build-system python-build-system)
+(inputs
+ `(("python-dateutil-2" ,python-dateutil-2)
+   ("python-pyicu" ,python-pyicu)))
+(synopsis "Parse and generate vCard and vCalendar files")
+(description "Vobject is intended to be a full featured Python package for
+parsing and generating vCard and vCalendar files.  Currently, iCalendar files
+are supported and well tested. vCard 3.0 files are supported, and all data
+should be imported, but only a few components are understood in a sophisticated
+way.")
+(home-page "http://eventable.github.io/vobject/;)
+(license asl2.0)
+(properties `((python2-variant . ,(delay python2-vobject))
+
+(define-public python2-vobject
+  (package
+(inherit (package-with-python2
+  (strip-python2-variant python-vobject)))
+(native-inputs `(("python2-setuptools" ,python2-setuptools)
-- 
2.6.3




[PATCH 2/5] gnu: python2-pyicu: Update to 1.9.2.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python2-pyicu): Update to 1.9.2.
---
 gnu/packages/python.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1a2c88a..f168d15 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1136,7 +1136,7 @@ Python 3.3+.")
 (define-public python2-pyicu
   (package
 (name "python2-pyicu")
-(version "1.8")
+(version "1.9.2")
 (source
  (origin
   (method url-fetch)
@@ -1144,7 +1144,7 @@ Python 3.3+.")
   version ".tar.gz"))
   (sha256
(base32
-"1y361x82lnh9k9srmdx3q92z5iag112z7r5fxm0n1sfwb349yjdw"
+"1diba0g8md614fvm9yf50paiwdkhj6rd7xwf1rg9mc0pxc0hhn4v"
 (build-system python-build-system)
 (inputs
  `(("icu4c" ,icu4c)))
-- 
2.6.3




[PATCH 1/5] gnu: Add python2-atomicwrites.

2016-03-03 Thread Leo Famulari
* gnu/packages/python.scm (python2-atomicwrites): New variable.
---
 gnu/packages/python.scm | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 131ec62..1a2c88a 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6756,7 +6756,14 @@ WebSocket usage in Python programs.")
 (description "Library for atomic file writes using platform dependent tools
 for atomic filesystem operations.")
 (home-page "https://github.com/untitaker/python-atomicwrites;)
-(license license:expat)))
+(license license:expat)
+(properties `((python2-variant . ,(delay python2-atomicwrites))
+
+(define-public python2-atomicwrites
+  (package (inherit (package-with-python2
+ (strip-python2-variant python-atomicwrites)))
+(native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
 
 (define-public python-requests-toolbelt
   (package
-- 
2.6.3




Guix Europe

2016-03-03 Thread Andreas Enge
Dear Guixers,

some of you have already spotted documents concerning a mysterious entity
called "Guix Europe" appear in the maintenance-git repo. So now I have a
pleasant announcement to make... But wait - I am not going to write it all up
a second time. Read on here:
   https://enge.fr/blog/2016/03/foundation-of-guix-europe/

Happy guixing,

Andreas




Re: [v2 0/1] Perl: Fix CVE-2016-2381

2016-03-03 Thread Leo Famulari
On Thu, Mar 03, 2016 at 05:37:39PM +0100, Ludovic Courtès wrote:
> Leo Famulari  skribis:
> 
> > Here's version 2 of this patch. The differences are improved context in
> > perl-CVE-2016-2381.patch and a fixed typo in the commit message.
> 
> LGTM!

Okay, pushed as d8173f21f7b4.

> 
> > I'm sending this with `git send-email` (Perl script) built on top of
> > this change.
> 
> Woohoo!
> 
> Thanks,
> Ludo’.



Re: Texlive-texmf

2016-03-03 Thread Ludovic Courtès
Andreas Enge  skribis:

> On Wed, Mar 02, 2016 at 10:34:23AM +0100, Ludovic Courtès wrote:
>> We don’t want people to have to do that, do we?  :-)
>> Personally, I don’t want to have to think beyond “guix package -i
>> texlive”.
>
> It is only about choice, you can always just install texlive if you are
> ready to download gigabytes of data!
>
> Personally, I like to just download texlive-bin and to build texlive locally
> from a tarball stored locally on my hard disk, to avoid downloading all the
> data.

I understand, but this is hack to work around “broken packaging” on our
side (“broken” in the sense that it sucks in comparison to what, say,
Debian provides), not a great recipe that we want users to care about.

> This was the original reason (plus easier debugging) that I kept the
> internal packages -bin and -texmf public; I think it was a mistake,
> since it seems to lead to a lot of confusion.
>
> So I will hide both the internal packages one of these days.

OK.

Ludo’.



Re: [PATCH 04/13] utils: Use '@' for separating package names and version numbers.

2016-03-03 Thread Ludovic Courtès
Alex Kost  skribis:

> Sorry if it was discussed but why 'package-full-name' from (guix
> packages) wasn't changed?

I think I was afraid that existing uses in unexpected place would break,
such as when using the full name as anchor names in HTML.

But then I also remember a version of ‘package-full-name’ that took an
optional separator that defaulted to ‘@’.  I forgot the details!  :-)
I don’t think it’s crucial though.  WDYT?

> Also I have a question regarding hydra.  Will hydra jobs still have
> such names as "git-2.6.3" or will they also be changed to "git@2.6.3"?

I would leave them unchanged.

> From 2dbfe087905cc08715bba0f4d4dd0093fd93372b Mon Sep 17 00:00:00 2001
> From: Alex Kost 
> Date: Thu, 3 Mar 2016 12:53:03 +0300
> Subject: [PATCH 1/2] emacs: Use '@' to separate package names and version
>  numbers.
>
> This is a followup to commit 1b846da8c372bee78851439fd9e72b2499115e5a.
>
> * emacs/guix-base.el (guix-package-name-specification): Use "@" instead
> of "-".
> * emacs/guix-main.scm (name+version->full-name): Likewise.
> (package-inputs-names): Use 'make-package-specification' instead of
> 'package-full-name'.
> (full-name->name+version): Update the docstring.
> * emacs/guix-ui-package.el (guix-packages-by-name): Likewise.

Looks good.  I forgot about these places where the “full name” matters,
sorry about that.

> From c6825b189f7b5d908c5fbe36d933fbe187cbc4bd Mon Sep 17 00:00:00 2001
> From: Alex Kost 
> Date: Thu, 3 Mar 2016 12:55:21 +0300
> Subject: [PATCH 2/2] emacs: hydra: Use '-' to separate job names and version
>  numbers.
>
> * emacs/guix-hydra.el (guix-hydra-job-name-specification): New procedure.
> * emacs/guix-ui-package.el (guix-package-info-insert-systems)
> (guix-package-list-latest-builds): Use it.

OK!

Thanks for catching it!

Ludo’.



Re: [PATCH] gnu: Add powwow.

2016-03-03 Thread Ludovic Courtès
Ricardo Wurmus  skribis:

> Nils Gillmann  writes:
>
>> should be:
>>
>> +;; The following files are GPLv3+:
>> +;;   config.guess, config.sub, depcomp
>> +(license (list license:gpl2+ license:gpl3+
>
> What happened to the public domain stuff?
>
> “config.guess” and the like are produced by autoconf, so I wonder if
> they need to mentioned at all.  They are not exactly part of the
> application.  Could someone else please confirm this?

I agree, no need to mention them (they come from Automake,
to be precise.)

Ludo’.



Re: Build-dependency on guile-json

2016-03-03 Thread Ludovic Courtès
Justus Winter  skribis:

> Hi,
>
> README says:
>>   - optionally 
>> [[http://savannah.nongnu.org/projects/guile-json/][Guile-JSON]], for the 
>> 'guix import pypi' command
>
> However, lacking guile-json, building guix fails with:

Fixed in 7016184245a3cf53fbe062901babdc76b85a7319, thanks!

Ludo'.



Re: [PATCH] po: Drop removed file 'weechat.scm'.

2016-03-03 Thread Ludovic Courtès
Justus Winter  skribis:

> weechat has been merged into 'irc.scm' in e288f007.
>
> * po/packages/POTFILES.in: Drop removed file 'weechat.scm'.

Pushed, thanks!

Chris Marusich  skribis:

> Is it not necessary to also do something about the other files that
> mention weechat's prevoius location? For example:
>
> $ grep -r gnu/packages/weechat .
> ./po/packages/da.po:#: gnu/packages/weechat.scm:92

This is fine, they will be regenerated (and it’s a comment so it has no
functional impact.)

> Also, FYI I filed a bug report about this yesterday because I noticed
> the problem but wasn't sure how to fix it. If you figure out how to fix
> it, we can probably resolve that!
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22888

Closed now!  :-)

Thanks,
Ludo’.



Re: [PATCH 1/2] svn-download: Respect current-http-proxy when downloading.

2016-03-03 Thread Jookia
On Thu, Mar 03, 2016 at 05:39:21PM +0100, Ludovic Courtès wrote:
> Of course you should keep using ‘string->uri’, no problem with that.
> 
> I’m just saying that the code should explicitly check for the
> ‘http_proxy’ environment variable instead of using the
> ‘current-http-proxy’ SRFI-9 parameter.
> 
> WDYT?

I think I know what you mean, I'll do a patch up when I can. :)

> Ludo’.

Jookia.



Re: [v2 0/1] Perl: Fix CVE-2016-2381

2016-03-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> Here's version 2 of this patch. The differences are improved context in
> perl-CVE-2016-2381.patch and a fixed typo in the commit message.

LGTM!

> I'm sending this with `git send-email` (Perl script) built on top of
> this change.

Woohoo!

Thanks,
Ludo’.



Re: [PATCH 1/1] gnu: perl: Replace with patched version [fixes CVE-2016-2381].

2016-03-03 Thread Ludovic Courtès
Leo Famulari  skribis:

> On Wed, Mar 02, 2016 at 10:52:58PM +0100, Ludovic Courtès wrote:

[...]

>> Otherwise LGTM, as long as you confirm that nothing goes really wrong
>> once it’s applied.  :-)
>
> Here are some things I tried:
>
> 1) Built and booted a VM with `guix system vm`. I don't know if perl (as
> opposed to perl-boot0) is used in this process, but it did work.
>
> 2) Built and installed git on top of it, and then rolled back the commit
> and used `git add -i` to recreate it, and then `git send-email` to
> submit it. Both of those tools are Perl scripts.

These do sound like good tests.  :-)

Ludo’.



GSoC strikes again

2016-03-03 Thread Ludovic Courtès
Hello!

Good news!  GNU has been accepted as a mentoring organization for
Google’s Summer of Code (GSoC).  So if you’d like to help Guix & GNU and
on top of that get a paycheck, now is the time to see how you can help!

Ideas have been collected for Guix, GuixSD, and the Shepherd at:

  https://libreplanet.org/wiki/Group:Guix/GSoC-2016

If you’re an eligible student, you can look at them and discuss them on
guix-devel.  Everyone is welcome to propose new ideas, and to promote
the page above in search of wonderful hackers!

Ludo’.


signature.asc
Description: PGP signature


Re: [PATCH] gnu: Add Augeas.

2016-03-03 Thread Ricardo Wurmus

Ludovic Courtès  writes:

> Ricardo Wurmus  skribis:
>
>> Leo Famulari  writes:
>>
 +(build-system gnu-build-system)
 +;; Marked as "required" in augeas.pc
 +(propagated-inputs
 + `(("libxml2" ,libxml2)))
>
> I find it clearer to put the comment right below ‘propagated-inputs’.
>
>>> Is there really no way to avoid this?
>>
>> I don’t know.
>
> The problem is that I don’t think it works to put an absolute file name
> in the ‘Requires’ field of a ‘.pc’ file, so I don’t think we can avoid
> it unfortunately.
>
> However, since Augeas is a library, the propagated input is acceptable:
> in practice, people probably won’t have it in their main environment,
> but rather in a ‘guix environment’ thing, or in a dedicated development
> profile.

Augeas is both a library and a command line tool.  For a command line
tool propagation is ugly and I’d like to avoid it.

What should I best do in this case?

~~ Ricardo



Re: [PATCH] po: Drop removed file 'weechat.scm'.

2016-03-03 Thread Chris Marusich
Hi Justus,

Is it not necessary to also do something about the other files that
mention weechat's prevoius location? For example:

--8<---cut here---start->8---
$ grep -r gnu/packages/weechat .
./po/packages/da.po:#: gnu/packages/weechat.scm:92
./po/packages/da.po:#: gnu/packages/weechat.scm:93
./po/packages/pl.po:#: gnu/packages/weechat.scm:92
./po/packages/pl.po:#: gnu/packages/weechat.scm:93
./po/packages/POTFILES.in:gnu/packages/weechat.scm
--8<---cut here---end--->8---

Also, FYI I filed a bug report about this yesterday because I noticed
the problem but wasn't sure how to fix it. If you figure out how to fix
it, we can probably resolve that!

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22888

Chris



Re: [PATCH] gnu: cups: Update to 2.1.3 (was gnu: cups: Update to 2.1.3 - request for help patching Makefiles)

2016-03-03 Thread Ricardo Wurmus

swedebu...@riseup.net writes:

>> I will focus on getting it to compile with the appropriate
>> configure-flags and afterwards we can collaborate on creating a
>> service for cups (with a config file).
>> 
>> Patching is necessary because we want cups to write logs and state/run
>> files to /var/cups and when compiling it fails when trying to create
>> those directories.
>
> I succeeded in getting it patched and compiling. :)

Oh, good!

Your patch doesn’t include the patch

gnu/packages/patches/cups-dir.patch

We also usually don’t put so many unrelated changes into the same
commit.  I see that your commit updates “cups-minimal”, adds a patch,
changes the configure-flags for “cups-minimal” and “cups”(?) ... It
would be better to split them into separate commits.

> cupsd still refuses to run for the following reason:
> sdb@unknown 
> /gnu/store/gm397jmdp3jafz6gm5ry6c459dvapcf7-cups-minimal-2.1.3/sbin$ 
> sudo cupsd -t
> "/gnu/store/qs3xymcsgxa68i8m188261rhxsszx7za-cups-2.1.0/etc/cups/cups-files.conf"
>  
> contains errors.

Shouldn’t it read the configuration from “/etc” first and only then look
up its default configuration file in “$out/etc/”?  It’s weird that this
unchanged file (or was it changed by the missing patch?) would be
reported as containing errors.

~~ Ricardo



Re: [PATCH] gnu: Add powwow.

2016-03-03 Thread Nils Gillmann
Ricardo Wurmus  writes:

> Nils Gillmann  writes:
>
>> should be:
>>
>> +;; The following files are GPLv3+:
>> +;;   config.guess, config.sub, depcomp
>> +(license (list license:gpl2+ license:gpl3+
>
> What happened to the public domain stuff?

It got re-licensed as GPL2+ with the additional note to the
original writers. I reference to another application version than
in the original question I had, the one I had was before the
apparent more or less rewrite and adoption which happened in 2010
and this version is from 2013, where what I started with had big
parts from 1998.

>
> “config.guess” and the like are produced by autoconf, so I wonder if
> they need to mentioned at all.  They are not exactly part of the
> application.  Could someone else please confirm this?
>
> ~~ Ricardo
>
>

-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en




[PATCH] gnu: Add powwow.

2016-03-03 Thread Nils Gillmann
This patch adds powwow, a telnet client which can be used for
MUDs.

I just noticed I made 2 minor mistakes:

+(home-page "http://www.hoopajoo/projects/powwow.html;)

should be:

+(home-page "http://www.hoopajoo.net/projects/powwow.html;)


and

+;; The following files are GPLv3+:
+;;   config.guess, config.sub, depcomp, ...
+(license (list license:gpl2+ license:gpl3+

should be:

+;; The following files are GPLv3+:
+;;   config.guess, config.sub, depcomp
+(license (list license:gpl2+ license:gpl3+


>From 91697b7749fd26954807788bc0cb7c2918d9ea0c Mon Sep 17 00:00:00 2001
From: Nils Gillmann 
Date: Thu, 3 Mar 2016 12:41:08 +0100
Subject: [PATCH] gnu: Add powwow.

* gnu/packages/admin.scm (powwow): New variable.
---
 gnu/packages/admin.scm | 27 +++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index b0b2046..bbc27e4 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2016 Leo Famulari 
 ;;; Copyright © 2016 Pjotr Prins 
 ;;; Copyright © 2016 Ricardo Wurmus 
+;;; Copyright © 2016 Nils Gillmann 
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1496,3 +1497,29 @@ for writing audit records to the disk.  Viewing the logs is done with the
 @code{ausearch} or @code{aureport} utilities.  Configuring the audit rules is
 done with the @code{auditctl} utility.")
 (license license:gpl2+)))
+
+(define-public powwow
+  (package
+(name "powwow")
+(version "1.2.17")
+(source (origin
+  (method url-fetch)
+  (uri (string-append "http://www.hoopajoo.net/static/projects/powwow-;
+  version ".tar.gz"))
+  (file-name (string-append name "-" version ".tar.gz"))
+  (sha256
+   (base32
+"1xmsg2y7qcvj67i9ilnih0mvfxcpni7fzrz343x9rdfnkkzf3pp8"
+(inputs
+ `(("ncurses" ,ncurses)))
+(build-system gnu-build-system)
+(home-page "http://www.hoopajoo/projects/powwow.html;)
+(synopsis "POWWOW is a enhanced telnet client which can be used for MUD")
+(description
+ "POWWOW is a client software which can be used for telnet as well as for
+@dfn{Multi-User Dungeon} (MUD).  Additionally it can serve as a nice client for
+the chat server psyced with the specific config located at
+http://lavachat.symlynx.com/unix/;)
+;; The following files are GPLv3+:
+;;   config.guess, config.sub, depcomp, ...
+(license (list license:gpl2+ license:gpl3+
-- 
2.6.3


-- 
ng
irc://loupsycedyglgamf.onion:67/~NiAsterisk
https://psyced.org:34443/NiAsterisk/
EDN: https://wiki.c3d2.de/Echt_Dezentrales_Netz/en


[PATCH] po: Drop removed file 'weechat.scm'.

2016-03-03 Thread Justus Winter
weechat has been merged into 'irc.scm' in e288f007.

* po/packages/POTFILES.in: Drop removed file 'weechat.scm'.
---
 po/packages/POTFILES.in | 1 -
 1 file changed, 1 deletion(-)

diff --git a/po/packages/POTFILES.in b/po/packages/POTFILES.in
index d77cb3b..60c6ab3 100644
--- a/po/packages/POTFILES.in
+++ b/po/packages/POTFILES.in
@@ -55,7 +55,6 @@ gnu/packages/textutils.scm
 gnu/packages/version-control.scm
 gnu/packages/webkit.scm
 gnu/packages/web.scm
-gnu/packages/weechat.scm
 gnu/packages/wordnet.scm
 gnu/packages/xiph.scm
 gnu/packages/zip.scm
-- 
2.1.4




Re: [PATCH 04/13] utils: Use '@' for separating package names and version numbers.

2016-03-03 Thread Alex Kost
Mathieu Lirzin (2016-02-29 03:28 +0300) wrote:

[...]
> I have left the emacs interface untouched.

Hm, I wonder why?  You already had the required changes in your initial
patch.  Anyway, I'm attaching the patch with these changes.  The only
difference from your original patch is replacing 'package-full-name'
with 'make-package-specification' in "guix-main.scm".

Sorry if it was discussed but why 'package-full-name' from (guix
packages) wasn't changed?

Also I have a question regarding hydra.  Will hydra jobs still have
such names as "git-2.6.3" or will they also be changed to "git@2.6.3"?

If the former, then some additional changes should be done (the patch
for this is also attached).

>From 2dbfe087905cc08715bba0f4d4dd0093fd93372b Mon Sep 17 00:00:00 2001
From: Alex Kost 
Date: Thu, 3 Mar 2016 12:53:03 +0300
Subject: [PATCH 1/2] emacs: Use '@' to separate package names and version
 numbers.

This is a followup to commit 1b846da8c372bee78851439fd9e72b2499115e5a.

* emacs/guix-base.el (guix-package-name-specification): Use "@" instead
of "-".
* emacs/guix-main.scm (name+version->full-name): Likewise.
(package-inputs-names): Use 'make-package-specification' instead of
'package-full-name'.
(full-name->name+version): Update the docstring.
* emacs/guix-ui-package.el (guix-packages-by-name): Likewise.
---
 emacs/guix-base.el   | 2 +-
 emacs/guix-main.scm  | 7 ---
 emacs/guix-ui-package.el | 2 +-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/emacs/guix-base.el b/emacs/guix-base.el
index 1248ecb..75d19cb 100644
--- a/emacs/guix-base.el
+++ b/emacs/guix-base.el
@@ -44,7 +44,7 @@
 
 (defun guix-package-name-specification (name version  output)
   "Return Guix package specification by its NAME, VERSION and OUTPUT."
-  (concat name "-" version
+  (concat name "@" version
   (when output (concat ":" output
 
 
diff --git a/emacs/guix-main.scm b/emacs/guix-main.scm
index 11b9c77..34da6ac 100644
--- a/emacs/guix-main.scm
+++ b/emacs/guix-main.scm
@@ -86,13 +86,13 @@
 (define (full-name->name+version spec)
   "Given package specification SPEC with or without output,
 return two values: name and version.  For example, for SPEC
-\"foo-0.9.1b:lib\", return \"foo\" and \"0.9.1b\"."
+\"foo@0.9.1b:lib\", return \"foo\" and \"0.9.1b\"."
   (let-values (((name version output)
 (package-specification->name+version+output spec)))
 (values name version)))
 
 (define (name+version->full-name name version)
-  (string-append name "-" version))
+  (string-append name "@" version))
 
 (define* (make-package-specification name #:optional version output)
   (let ((full-name (if version
@@ -263,7 +263,8 @@ Example:
   "Return a list of full names of the packages from package INPUTS."
   (filter-map (match-lambda
((_ (? package? package))
-(package-full-name package))
+(make-package-specification (package-name package)
+(package-version package)))
((_ (? package? package) output)
 (make-package-specification (package-name package)
 (package-version package)
diff --git a/emacs/guix-ui-package.el b/emacs/guix-ui-package.el
index d6d2633..56aa64f 100644
--- a/emacs/guix-ui-package.el
+++ b/emacs/guix-ui-package.el
@@ -945,7 +945,7 @@ See `guix-find-location' for the meaning of DIRECTORY."
 (defun guix-packages-by-name (name  profile)
   "Display Guix packages with NAME.
 NAME is a string with name specification.  It may optionally contain
-a version number.  Examples: \"guile\", \"guile-2.0.11\".
+a version number.  Examples: \"guile\", \"guile@2.0.11\".
 
 If PROFILE is nil, use `guix-current-profile'.
 Interactively with prefix, prompt for PROFILE."
-- 
2.6.3

>From c6825b189f7b5d908c5fbe36d933fbe187cbc4bd Mon Sep 17 00:00:00 2001
From: Alex Kost 
Date: Thu, 3 Mar 2016 12:55:21 +0300
Subject: [PATCH 2/2] emacs: hydra: Use '-' to separate job names and version
 numbers.

* emacs/guix-hydra.el (guix-hydra-job-name-specification): New procedure.
* emacs/guix-ui-package.el (guix-package-info-insert-systems)
(guix-package-list-latest-builds): Use it.
---
 emacs/guix-hydra.el  | 4 
 emacs/guix-ui-package.el | 5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/emacs/guix-hydra.el b/emacs/guix-hydra.el
index 4294839..9f876e7 100644
--- a/emacs/guix-hydra.el
+++ b/emacs/guix-hydra.el
@@ -36,6 +36,10 @@
   (concat ".*\\." (regexp-opt guix-help-system-types) "\\'")
   "Regexp matching a full name of Hydra job (including system).")
 
+(defun guix-hydra-job-name-specification (name version)
+  "Return Hydra's job name specification by NAME and VERSION."
+  (concat name "-" version))
+
 (defun guix-hydra-message (entries search-type  _)
   "Display a message after showing Hydra ENTRIES."
   ;; XXX Add more messages maybe.
diff --git a/emacs/guix-ui-package.el 

[PATCH]: Update GRUB menu entry to say (beta) instead of (alpha)

2016-03-03 Thread Petter

Hi,

Current menu entry in GRUB:

GNU with Linux-Libre 4.4.3 (alpha)


Patched:

GNU with Linux-Libre 4.4.3 (beta)



Beta! :)
PetterFrom 856ecb2a41e7a39faeca1323f068e792fbdc16ff Mon Sep 17 00:00:00 2001
From: Petter 
Date: Thu, 3 Mar 2016 10:47:39 +0100
Subject: [PATCH] Updated GRUB menu entry to say (beta) instead of (alpha)

---
 gnu/system.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index d600d3a..c5dc72e 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -702,7 +702,7 @@ listed in OS.  The C library expects to find it under
   (string-append "GNU with "
  (string-titlecase (package-name kernel)) " "
  (package-version kernel)
- " (alpha)"))
+ " (beta)"))
 
 (define (store-file-system file-systems)
   "Return the file system object among FILE-SYSTEMS that contains the store."
-- 
2.6.3



Re: recommend the binary install as the path to guixSD?

2016-03-03 Thread Andy Wingo
On Thu 03 Mar 2016 02:27, myglc2  writes:

> Isn't it straightforward to install guixSD on a new hard drive if you
> have Guix running on a "foreign" distro?

Maybe this is the right thing.  Maybe the fastest path to a good GuixSD
installation is via a minimal debian install + detrout's Guix package!

That said it's a bit terrifying in some ways.  I guess you could always
work onto a separate partition, that would limit some of the terror.  I
moved a Debian or some other system over to NixOS at one point and
whooo, running "mv /etc /old-etc" and similar commands can give you
pause!

But, I was also skeptical of the "just unpack the /gnu/store tarball and
copy the sqlite file" approach, and that has turned out to work really
well, so maybe this is a thing!

Andy