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