Commit | Line | Data |
---|---|---|
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> |
2545ab2a | 5 | ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> |
f4c4513d EB |
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) | |
2545ab2a | 25 | #:use-module (guix git-download) |
f4c4513d EB |
26 | #:use-module (guix build-system python) |
27 | #:use-module (gnu packages) | |
a8714bf6 | 28 | #:use-module (gnu packages databases) |
f4c4513d EB |
29 | #:use-module (gnu packages gtk) |
30 | #:use-module (gnu packages glib) | |
31 | #:use-module (gnu packages image) | |
44d10b1f | 32 | #:use-module (gnu packages python) |
55e1475c MB |
33 | #:use-module (gnu packages python-xyz) |
34 | #:use-module (gnu packages xml)) | |
f4c4513d EB |
35 | |
36 | (define-public gourmet | |
37 | (package | |
38 | (name "gourmet") | |
39 | (version "0.17.4") | |
40 | (source | |
41 | (origin | |
2545ab2a EF |
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)) | |
f4c4513d EB |
47 | (sha256 |
48 | (base32 | |
2545ab2a | 49 | "09a2zk140l4babwdj8pwcgl9v7rvwff9cn7h3ppfhm3yvsgkrx07")))) |
f4c4513d EB |
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) | |
217f704c | 60 | ("python-lxml" ,python2-lxml) |
f4c4513d | 61 | ("python-pillow" ,python2-pillow) |
f3b98f4f | 62 | ("elib.intl" ,python2-elib.intl))) |
f4c4513d EB |
63 | (arguments |
64 | `(#:python ,python-2 ;exception and print syntax | |
217f704c MM |
65 | #:tests? #f ;tests look bitrotted |
66 | #:phases | |
67 | (modify-phases %standard-phases | |
68 | (replace 'install | |
84c10c3b | 69 | (lambda* (#:key outputs #:allow-other-keys) |
0edc232b | 70 | (invoke "python" "setup.py" "install" "--prefix" |
84c10c3b | 71 | (assoc-ref outputs "out"))))))) |
e564d33c | 72 | (home-page "https://thinkle.github.io/gourmet/") |
f4c4513d EB |
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+))) |