me
/
guix
Archived
1
0
Fork 0

gnu: python-internetarchive: Update to 1.8.5.

* gnu/packages/web.scm (python-internetarchive)[version]: Update to 1.8.5.
[source](modules, snippet): New fields.
master
Oleg Pykhalov 2019-07-09 15:35:51 +03:00
parent 710f027765
commit 38a9b4b74e
No known key found for this signature in database
GPG Key ID: 167F8EA5001AFA9C
1 changed files with 18 additions and 6 deletions

View File

@ -5239,16 +5239,28 @@ command-line arguments or read from stdin.")
(define-public python-internetarchive (define-public python-internetarchive
(package (package
(name "python-internetarchive") (name "python-internetarchive")
(version "1.7.4") (version "1.8.5")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://github.com/jjjake/internetarchive/archive/" (uri (git-reference
"v" version ".tar.gz")) (url "https://github.com/jjjake/internetarchive")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0sdbb2ag6vmybi8zmbjszi492a587giaaqxyy1p6gy03cb8mc512")))) "0ih7hplv92wbv6cmgc1gs0v35qkajwicalwcq8vcljw30plr24fp"))
(modules '((guix build utils)))
(snippet
'(begin
;; Python 3.7 removed `_pattern_type'.
(for-each (lambda (file)
(chmod file #o644)
(substitute* file
(("^import re\n" line)
(string-append line "re._pattern_type = re.Pattern\n"))))
(find-files "." "\\.py$"))
#t))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases