| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 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
|
| 81 | in the @url{https://schema.org/Recipe} format.")
|
| 82 | (license asl2.0)))
|