[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/15: gnu: python-magic: Update to 0.4.15.
From: |
Danny Milosavljevic |
Subject: |
04/15: gnu: python-magic: Update to 0.4.15. |
Date: |
Mon, 22 Jan 2018 14:00:58 -0500 (EST) |
dannym pushed a commit to branch master
in repository guix.
commit ce4c9b73c8357c7ba16df491dfa05aef9645c36e
Author: Adriano Peluso <address@hidden>
Date: Mon Jan 22 18:36:17 2018 +0100
gnu: python-magic: Update to 0.4.15.
* gnu/packages/python.scm (python-magic) Updated to 0.4.15.
Signed-off-by: Danny Milosavljevic <address@hidden>
---
gnu/packages/python.scm | 53 +++++++++++++++++++++++++------------------------
1 file changed, 27 insertions(+), 26 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 8ded440..346363d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8093,15 +8093,14 @@ is made as zipfile like as possible.")
(define-public python-magic
(package
(name "python-magic")
- (version "0.4.3")
+ (version "0.4.15")
(source
(origin
(method url-fetch)
- (uri (string-append "https://github.com/ahupp/python-magic/archive/"
- version ".tar.gz"))
+ (uri (pypi-uri "python-magic" version))
(sha256
(base32
- "17bgy92i7sb021f2s4mw1dcvpm6p1mi9jihridwy1pyn8mzvpjgk"))
+ "1mgwig9pnzgkf86q9ji9pnc99bngms15lfszq5rgqb9db07mqxpk"))
(file-name (string-append name "-" version "-checkout"))))
(build-system python-build-system)
(arguments
@@ -8119,31 +8118,33 @@ is made as zipfile like as possible.")
;; expected.
'(#:tests? #f
#:phases (modify-phases %standard-phases
- ;; Replace a specific method call with a hard-coded
- ;; path to the necessary libmagic.so file in the
- ;; store. If we don't do this, then the method call
- ;; will fail to find the libmagic.so file, which in
- ;; turn will cause any application using
- ;; python-magic to fail.
- (add-before 'build 'hard-code-path-to-libmagic
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((file (assoc-ref inputs "file")))
- (substitute* "magic.py"
- (("ctypes.util.find_library\\('magic'\\)")
- (string-append "'" file "/lib/libmagic.so'")))
- #t)))
- (add-before 'install 'disable-egg-compression
- (lambda _
- (let ((port (open-file "setup.cfg" "a")))
- (display "\n[easy_install]\nzip_ok = 0\n"
- port)
- (close-port port)
- #t))))))
+ ;; Replace a specific method call with a hard-coded
+ ;; path to the necessary libmagic.so file in the
+ ;; store. If we don't do this, then the method call
+ ;; will fail to find the libmagic.so file, which in
+ ;; turn will cause any application using
+ ;; python-magic to fail.
+ (add-before 'build 'hard-code-path-to-libmagic
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((file (assoc-ref inputs "file")))
+ (substitute* "magic.py"
+ (("ctypes.util.find_library\\('magic'\\)")
+ (string-append "'" file "/lib/libmagic.so'")))
+ #t)))
+ (add-before 'install 'disable-egg-compression
+ (lambda _
+ (let ((port (open-file "setup.cfg" "a")))
+ (display "\n[easy_install]\nzip_ok = 0\n"
+ port)
+ (close-port port)
+ #t))))))
(inputs
;; python-magic needs to be able to find libmagic.so.
`(("file" ,file)))
- (home-page "https://github.com/ahupp/python-magic")
- (synopsis "File type identification using libmagic")
+ (home-page
+ "https://github.com/ahupp/python-magic")
+ (synopsis
+ "File type identification using libmagic")
(description
"This module uses ctypes to access the libmagic file type
identification library. It makes use of the local magic database and
- branch master updated (28b0b21 -> 20e42d1), Danny Milosavljevic, 2018/01/22
- 01/15: gnu: aria-maestosa: Use scons-python2., Danny Milosavljevic, 2018/01/22
- 02/15: gnu: aria-maestosa: Use scons-build-system., Danny Milosavljevic, 2018/01/22
- 03/15: gnu: wxwidgets: Use webkitgtk-2.4., Danny Milosavljevic, 2018/01/22
- 05/15: gnu: python-relatorio: Update to 0.8.0., Danny Milosavljevic, 2018/01/22
- 04/15: gnu: python-magic: Update to 0.4.15.,
Danny Milosavljevic <=
- 07/15: gnu: tryton: Updated to 4.6.2., Danny Milosavljevic, 2018/01/22
- 08/15: gnu: Add python-phonenumbers., Danny Milosavljevic, 2018/01/22
- 06/15: gnu: trytond: Updated to 4.6.2., Danny Milosavljevic, 2018/01/22
- 10/15: gnu: Rename "trytond" to "python-trytond"., Danny Milosavljevic, 2018/01/22
- 15/15: gnu: aria-maestosa: Add scons-flags., Danny Milosavljevic, 2018/01/22
- 09/15: gnu: Add python-proteus., Danny Milosavljevic, 2018/01/22
- 13/15: gnu: Add python-trytond-party., Danny Milosavljevic, 2018/01/22
- 12/15: gnu: Add python-stdnum., Danny Milosavljevic, 2018/01/22
- 11/15: gnu: Add python-trytond-country., Danny Milosavljevic, 2018/01/22
- 14/15: gnu: python-proteus: Add dependencies., Danny Milosavljevic, 2018/01/22