[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/23: gnu: calibre: Update to 3.41.3.
From: |
guix-commits |
Subject: |
01/23: gnu: calibre: Update to 3.41.3. |
Date: |
Sun, 5 May 2019 11:15:23 -0400 (EDT) |
dannym pushed a commit to branch master
in repository guix.
commit 4e6f8a1442d04a4dd9066c4bda0a3c06cb4af5d3
Author: Brendan Tildesley <address@hidden>
Date: Sat May 4 02:42:09 2019 +1000
gnu: calibre: Update to 3.41.3.
* gnu/packages/ebook.scm (calibre): Update to 3.41.3.
[inputs]: Replace python2-cssutils by python2-css-parser.
[snippet]: Modify.
* gnu/packages/patches/calibre-use-packaged-feedparser.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Remove patch.
Signed-off-by: Danny Milosavljevic <address@hidden>
---
gnu/local.mk | 1 -
gnu/packages/ebook.scm | 12 ++---
.../patches/calibre-use-packaged-feedparser.patch | 51 ----------------------
3 files changed, 4 insertions(+), 60 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index a0f40d1..d7d1a3f 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -690,7 +690,6 @@ dist_patch_DATA =
\
%D%/packages/patches/boost-fix-icu-build.patch \
%D%/packages/patches/byobu-writable-status.patch \
%D%/packages/patches/calibre-no-updates-dialog.patch \
- %D%/packages/patches/calibre-use-packaged-feedparser.patch \
%D%/packages/patches/casync-renameat2-declaration.patch \
%D%/packages/patches/catdoc-CVE-2017-11110.patch \
%D%/packages/patches/cdparanoia-fpic.patch \
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 99e49bc..a603519 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -78,7 +78,7 @@
(define-public calibre
(package
(name "calibre")
- (version "3.35.0")
+ (version "3.41.3")
(source
(origin
(method url-fetch)
@@ -87,20 +87,16 @@
version ".tar.xz"))
(sha256
(base32
- "1gd15wjz4fhcra6d44xiy3hwbyk0miwb66a1pq5yldyy0hlb271z"))
+ "167hhv4wimkjnyfgqkyqmaiixhicbxacy6190gps98jyj4csi8ra"))
;; Remove non-free or doubtful code, see
;; https://lists.gnu.org/archive/html/guix-devel/2015-02/msg00478.html
(modules '((guix build utils)))
(snippet
'(begin
- (delete-file-recursively "src/calibre/ebooks/markdown")
(delete-file "src/odf/thumbnail.py")
(delete-file-recursively "resources/fonts/liberation")
- (substitute* (find-files "." "\\.py")
- (("calibre\\.ebooks\\.markdown") "markdown"))
#t))
- (patches (search-patches "calibre-use-packaged-feedparser.patch"
- "calibre-no-updates-dialog.patch"))))
+ (patches (search-patches "calibre-no-updates-dialog.patch"))))
(build-system python-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)
@@ -129,7 +125,7 @@
("python2-apsw" ,python2-apsw)
("python2-chardet" ,python2-chardet)
("python2-cssselect" ,python2-cssselect)
- ("python2-cssutils" ,python2-cssutils)
+ ("python2-css-parser" ,python2-css-parser)
("python2-dateutil" ,python2-dateutil)
("python2-dbus" ,python2-dbus)
("python2-dnspython" ,python2-dnspython)
diff --git a/gnu/packages/patches/calibre-use-packaged-feedparser.patch
b/gnu/packages/patches/calibre-use-packaged-feedparser.patch
deleted file mode 100644
index 8f4bbc8..0000000
--- a/gnu/packages/patches/calibre-use-packaged-feedparser.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From: Martin Pitt <address@hidden>
-Date: Mon, 14 Nov 2016 22:41:23 +0100
-Subject: Use packaged instead of bundled feedparser Python module
-
----
- recipes/lenta_ru.recipe | 4 +++-
- src/calibre/web/feeds/__init__.py | 4 +++-
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/recipes/lenta_ru.recipe b/recipes/lenta_ru.recipe
-index aa4dac4..4b6710c 100644
---- a/recipes/lenta_ru.recipe
-+++ b/recipes/lenta_ru.recipe
-@@ -4,11 +4,13 @@
- Lenta.ru
- '''
-
--from calibre.web.feeds.feedparser import parse
- from calibre.ebooks.BeautifulSoup import Tag
- from calibre.web.feeds.news import BasicNewsRecipe
-+from feedparser import parse
-+from functools import partial
- import re
-
-+parse = partial(parse, agent='Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US;
rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11')
-
- class LentaRURecipe(BasicNewsRecipe):
- title = u'Lenta.ru: \u041d\u043e\u0432\u043e\u0441\u0442\u0438'
-diff --git a/src/calibre/web/feeds/__init__.py
b/src/calibre/web/feeds/__init__.py
-index 8c9d748..f262604 100644
---- a/src/calibre/web/feeds/__init__.py
-+++ b/src/calibre/web/feeds/__init__.py
-@@ -11,7 +11,10 @@ from calibre.utils.logging import default_log
- from calibre import entity_to_unicode, strftime, force_unicode
- from calibre.utils.date import dt_factory, utcnow, local_tz
- from calibre.utils.cleantext import clean_ascii_chars, clean_xml_chars
-+from feedparser import parse
-+from functools import partial
-
-+parse = partial(parse, agent='Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US;
rv:1.9.2.11) Gecko/20101012 Firefox/3.6.11')
-
- class Article(object):
-
-@@ -334,7 +337,6 @@ def feed_from_xml(raw_xml, title=None, oldest_article=7,
- max_articles_per_feed=100,
- get_article_url=lambda item: item.get('link', None),
- log=default_log):
-- from calibre.web.feeds.feedparser import parse
- # Handle unclosed escaped entities. They trip up feedparser and HBR for
one
- # generates them
- raw_xml = re.sub(r'(&#\d+)([^0-9;])', r'\1;\2', raw_xml)
- 02/23: gnu: calibre: Use system mathjax., (continued)
- 02/23: gnu: calibre: Use system mathjax., guix-commits, 2019/05/05
- 17/23: gnu: calibre: Remove some comments., guix-commits, 2019/05/05
- 16/23: gnu: calibre: Enable tests., guix-commits, 2019/05/05
- 10/23: gnu: calibre: Disable tests that require networking., guix-commits, 2019/05/05
- 20/23: gnu: calibre: Delete various junk from source., guix-commits, 2019/05/05
- 15/23: gnu: calibre: Disable sqlite test., guix-commits, 2019/05/05
- 18/23: gnu: calibre: Unbundle python2-odfpy., guix-commits, 2019/05/05
- 21/23: gnu: calibre: Install man pages., guix-commits, 2019/05/05
- 23/23: gnu: calibre: Update to 3.42.0., guix-commits, 2019/05/05
- 19/23: gnu: calibre: Remove libxrender as an input., guix-commits, 2019/05/05
- 01/23: gnu: calibre: Update to 3.41.3.,
guix-commits <=
- 05/23: gnu: calibre: Move font unbundling to after check phase., guix-commits, 2019/05/05
- 07/23: gnu: calibre: Add python2-html2text as an input., guix-commits, 2019/05/05
- 12/23: gnu: calibre: Use "linux.py" to install desktop files., guix-commits, 2019/05/05
- 14/23: gnu: calibre: Disable Qt test., guix-commits, 2019/05/05
- 13/23: gnu: calibre: Disable bs4 test., guix-commits, 2019/05/05
- 09/23: gnu: calibre: Remove unrar test., guix-commits, 2019/05/05
- 11/23: gnu: Add python-soupsieve, python2-soupsieve., guix-commits, 2019/05/05
- 22/23: gnu: calibre: Shorten long line., guix-commits, 2019/05/05