projects/guix·blob python-team · refs

82 lines · 3.2 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 Eric Bavier <[email protected]>
3;;; Copyright © 2015 Mark H Weaver <[email protected]>
4;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
5;;; Copyright © 2020 Efraim Flashner <[email protected]>
6;;; Copyright © 2022 Maxim Cournoyer <[email protected]>
7;;; Copyright © 2024 Ricardo Wurmus <[email protected]>
8;;;
9;;; This file is part of GNU Guix.
10;;;
11;;; GNU Guix is free software; you can redistribute it and/or modify it
12;;; under the terms of the GNU General Public License as published by
13;;; the Free Software Foundation; either version 3 of the License, or (at
14;;; your option) any later version.
15;;;
16;;; GNU Guix is distributed in the hope that it will be useful, but
17;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19;;; GNU General Public License for more details.
20;;;
21;;; You should have received a copy of the GNU General Public License
22;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
23
24(define-module (gnu packages nutrition)
25 #:use-module (guix download)
26 #:use-module (guix packages)
27 #:use-module (guix licenses)
28 #:use-module (guix gexp)
29 #:use-module (guix git-download)
30 #:use-module (guix build-system pyproject)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages check)
33 #:use-module (gnu packages databases)
34 #:use-module (gnu packages enchant)
35 #:use-module (gnu packages glib)
36 #:use-module (gnu packages gtk)
37 #:use-module (gnu packages gstreamer)
38 #:use-module (gnu packages image)
39 #:use-module (gnu packages python)
40 #:use-module (gnu packages python-build)
41 #:use-module (gnu packages python-crypto)
42 #:use-module (gnu packages python-web)
43 #:use-module (gnu packages python-xyz)
44 #:use-module (gnu packages time)
45 #:use-module (gnu packages xorg)
46 #:use-module (gnu packages xml))
47
48(define-public python-scrape-schema-recipe
49 (package
50 (name "python-scrape-schema-recipe")
51 (version "0.2.2")
52 (source
53 (origin
54 (method git-fetch)
55 (uri (git-reference
56 (url "https://github.com/micahcochran/scrape-schema-recipe")
57 (commit (string-append "v" version))))
58 (file-name (git-file-name name version))
59 (sha256
60 (base32 "1yrqawnxp1k9ps0c920qjbbaxpmz3cf8bzyjs1kimvlxym78b614"))))
61 (build-system pyproject-build-system)
62 (arguments
63 (list
64 #:phases
65 #~(modify-phases %standard-phases
66 (add-before 'check 'configure-tests
67 (lambda* (#:key tests? #:allow-other-keys)
68 (when tests?
69 (substitute* "test_scrape.py"
70 (("DISABLE_NETWORK_TESTS = False")
71 "DISABLE_NETWORK_TESTS = True"))))))))
72 (native-inputs (list python-pytest python-setuptools))
73 (propagated-inputs
74 (list python-extruct
75 python-importlib-resources
76 python-isodate
77 python-requests))
78 (home-page "https://github.com/micahcochran/scrape-schema-recipe")
79 (synopsis "HTML Recipe format extractor")
80 (description "This tool extracts cooking recipe from HTML structured data
81in the @url{https://schema.org/Recipe} format.")
82 (license asl2.0)))