gnu: Use invoke and return #t from all builders.
[jackhill/guix/guix.git] / gnu / packages / nutrition.scm
CommitLineData
f4c4513d
EB
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
f586c877 3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
f4c4513d
EB
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages nutrition)
21 #:use-module (guix packages)
22 #:use-module (guix licenses)
23 #:use-module (guix download)
24 #:use-module (guix build-system python)
25 #:use-module (gnu packages)
a8714bf6 26 #:use-module (gnu packages databases)
f4c4513d
EB
27 #:use-module (gnu packages gtk)
28 #:use-module (gnu packages glib)
29 #:use-module (gnu packages image)
30 #:use-module (gnu packages python))
31
32(define-public gourmet
33 (package
34 (name "gourmet")
35 (version "0.17.4")
36 (source
37 (origin
38 (method url-fetch)
39 (uri (string-append "https://github.com/thinkle/gourmet/archive/"
40 version ".tar.gz"))
f586c877 41 (file-name (string-append name "-" version ".tar.gz"))
f4c4513d
EB
42 (sha256
43 (base32
44 "1qvz175arzqm10lpfx8ffadrgirs3240zzqcp0h7sl53qfwx7v8k"))))
45 (build-system python-build-system)
46 (native-inputs
47 `(("distutils-extra" ,python2-distutils-extra)
48 ("intltool" ,intltool)
49 ("python-pygtk" ,python2-pygtk))) ;for tests
50 ;; TODO: Add python-reportlab and/or python-poppler for printing/pdf
51 ;; export, and python-beautifulsoup for web import plugin.
52 (inputs
53 `(("pygtk" ,python2-pygtk)
54 ("sqlalchemy" ,python2-sqlalchemy)
217f704c 55 ("python-lxml" ,python2-lxml)
f4c4513d 56 ("python-pillow" ,python2-pillow)
f3b98f4f 57 ("elib.intl" ,python2-elib.intl)))
f4c4513d
EB
58 (arguments
59 `(#:python ,python-2 ;exception and print syntax
217f704c
MM
60 #:tests? #f ;tests look bitrotted
61 #:phases
62 (modify-phases %standard-phases
63 (replace 'install
64 (lambda* (#:key make-flags #:allow-other-keys)
65 (zero? (system* "python" "setup.py" "install" "--prefix"
66 (assoc-ref %outputs "out"))))))))
f4c4513d
EB
67 (home-page "http://thinkle.github.io/gourmet/")
68 (synopsis "Recipe organizer")
69 (description
70 "Gourmet Recipe Manager is a recipe organizer that allows you to collect,
71search, organize, and browse your recipes. Gourmet can also generate shopping
72lists and calculate nutritional information. It imports Mealmaster,
73MasterCook and KRecipe files and exports PDFs, webpages, and other formats.")
74 (license gpl2+)))