[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51314] [PATCH 01/29] gnu: Add python-filetype.
From: |
Vinicius Monego |
Subject: |
[bug#51314] [PATCH 01/29] gnu: Add python-filetype. |
Date: |
Thu, 21 Oct 2021 03:52:46 +0000 |
* gnu/packages/python-xyz.scm (python-filetype): New variable.
---
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 c335dea277..0e56570b83 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11069,6 +11069,41 @@ your package is installed, via @code{pkg_resources}
(part of
@code{setuptools}).")
(license license:gpl3+)))
+(define-public python-filetype
+ (package
+ (name "python-filetype")
+ (version "1.0.8")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "filetype" version))
+ (sha256
+ (base32 "05mkinkcn36v1cnb5hzay3zxmv7jmmflckxxp08rgzbkkf3i9pvp"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (add-installed-pythonpath inputs outputs)
+ (invoke "python" "-m" "pytest" "-k"
+ (string-append
+ ;; Both tests fail with FileNotFoundError.
+ "not test_infer_zip_from_disk"
+ " and not test_infer_tar_from_disk"))))))))
+ (native-inputs
+ `(("python-flake8" ,python-flake8)
+ ("python-pytest" ,python-pytest)
+ ("python-pytest-benchmark"
+ ,python-pytest-benchmark)))
+ (home-page "https://github.com/h2non/filetype.py")
+ (synopsis "Infer file type and MIME type of any file/buffer")
+ (description "@code{filetype} is a small and dependency free Python
+package to infer file type and MIME type checking the magic numbers
+signature of a file or buffer.")
+ (license license:expat)))
+
(define-public python-legacy-api-wrap
(package
(name "python-legacy-api-wrap")
--
2.30.2
- [bug#51314] [PATCH 00/29] Add Octoprint (web UI for 3d printers)., Vinicius Monego, 2021/10/20
- [bug#51314] [PATCH 01/29] gnu: Add python-filetype.,
Vinicius Monego <=
- [bug#51314] [PATCH 05/29] gnu: Add python-sarge., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 14/29] gnu: Add python-pytest-doctest-custom., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 17/29] gnu: python-feedparser: Enable tests., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 13/29] gnu: Add python-sentry-sdk., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 10/29] gnu: Add python-flask-assets., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 12/29] gnu: Add python-executing., Vinicius Monego, 2021/10/21
- [bug#51314] [PATCH 19/29] gnu: python-websocket-client: Update to 0.59.0., Vinicius Monego, 2021/10/21