[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/18: gnu: Add python-identify.
From: |
guix-commits |
Subject: |
14/18: gnu: Add python-identify. |
Date: |
Sat, 25 Jul 2020 12:49:18 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 48443dc8805fc398a1108dbde86e077b0646cf30
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Fri Jul 24 09:01:41 2020 -0300
gnu: Add python-identify.
* gnu/packages/python-xyz.scm (python-identify): New variable.
Signed-off-by: Marius Bakke <marius@gnu.org>
---
gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index a2ec1fc..031ce91 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -162,6 +162,7 @@
#:use-module (gnu packages terminals)
#:use-module (gnu packages tex)
#:use-module (gnu packages texinfo)
+ #:use-module (gnu packages textutils)
#:use-module (gnu packages time)
#:use-module (gnu packages tls)
#:use-module (gnu packages version-control)
@@ -17487,6 +17488,40 @@ library to allow local file system access via
@code{file://} URLs.")
(define-public python2-requests-file
(package-with-python2 python-requests-file))
+(define-public python-identify
+ (package
+ (name "python-identify")
+ (version "1.4.25")
+ (source
+ (origin
+ ;; There are no tests in the PyPI tarball.
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/chriskuehl/identify")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1fqgci6skckcq0x5pnxh6k2qjzn1ndsrgha1j6wwv1ld4g9bd3hz"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "pytest" "-vv"))))))
+ (native-inputs
+ `(("python-coverage" ,python-coverage)
+ ("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-editdistance" ,python-editdistance)))
+ (home-page "https://github.com/chriskuehl/identify")
+ (synopsis "File identification library for Python")
+ (description
+ "@code{identify} is a file identification library for Python. Given
+a file (or some information about a file), return a set of standardized tags
+identifying what the file is.")
+ (license license:expat)))
+
(define-public python-tldextract
(package
(name "python-tldextract")
- 06/18: gnu: Add python-pytest-arraydiff., (continued)
- 06/18: gnu: Add python-pytest-arraydiff., guix-commits, 2020/07/25
- 10/18: gnu: Add python-pytest-remotedata., guix-commits, 2020/07/25
- 13/18: gnu: Add python-cfgv., guix-commits, 2020/07/25
- 15/18: gnu: Add python-nodeenv., guix-commits, 2020/07/25
- 17/18: gnu: Add python-pre-commit., guix-commits, 2020/07/25
- 07/18: gnu: Add python-pytest-doctestplus., guix-commits, 2020/07/25
- 08/18: gnu: Add python-pytest-filter-subpackage., guix-commits, 2020/07/25
- 09/18: gnu: Add python-pytest-openfiles., guix-commits, 2020/07/25
- 11/18: gnu: Add python-pytest-mpl., guix-commits, 2020/07/25
- 12/18: gnu: Add python-covdefaults., guix-commits, 2020/07/25
- 14/18: gnu: Add python-identify.,
guix-commits <=
- 16/18: gnu: Add python-pytest-env., guix-commits, 2020/07/25
- 18/18: gnu: beets: Support replaygain plugin., guix-commits, 2020/07/25