gnu: calibre: Unbundle python2-odfpy.
authorBrendan Tildesley <mail@brendan.scot>
Sun, 5 May 2019 12:33:35 +0000 (14:33 +0200)
committerDanny Milosavljevic <dannym@scratchpost.org>
Sun, 5 May 2019 12:44:21 +0000 (14:44 +0200)
* gnu/packages/ebook.scm (calibre)[snippet]: Remove all of src/odf.
[inputs]: Add python2-odfpy.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
gnu/packages/ebook.scm

index ba99ce9..d281e2f 100644 (file)
         (sha256
          (base32
           "167hhv4wimkjnyfgqkyqmaiixhicbxacy6190gps98jyj4csi8ra"))
-        ;; Remove non-free or doubtful code, see
+        ;; Unbundle python2-odfpy. 
         ;; https://lists.gnu.org/archive/html/guix-devel/2015-02/msg00478.html
         (modules '((guix build utils)))
         (snippet
           '(begin
-            (delete-file "src/odf/thumbnail.py")
-            #t))
+             (delete-file-recursively "src/odf")
+             #t))
         (patches (search-patches "calibre-no-updates-dialog.patch"
                                  "calibre-remove-test-bs4.patch" ; TODO: fix test.
                                  "calibre-remove-test-sqlite.patch" ; TODO: fix test.
        ;; python2-msgpack is needed for the network content server to work.
        ("python2-msgpack" ,python2-msgpack)
        ("python2-netifaces" ,python2-netifaces)
+       ("python2-odfpy" ,python2-odfpy)
        ("python2-pillow" ,python2-pillow)
        ("python2-psutil" ,python2-psutil)
        ("python2-pygments" ,python2-pygments)