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