[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: gnu: Add python-binaryornot.
From: |
David Craven |
Subject: |
03/11: gnu: Add python-binaryornot. |
Date: |
Sun, 28 Aug 2016 12:20:28 +0000 (UTC) |
dvc pushed a commit to branch master
in repository guix.
commit 8794bd8bb304035a106614854f881749ed131b15
Author: David Craven <address@hidden>
Date: Fri Aug 5 19:25:15 2016 +0200
gnu: Add python-binaryornot.
* gnu/packages/python.scm (python-binaryornot): New variable.
(python2-binaryornot): New variable.
---
gnu/packages/python.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 15ff14d..77996e6 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9992,3 +9992,34 @@ hardware-accelerated multitouch applications.")
(define-public python2-kivy-next
(package-with-python2 python-kivy-next))
+
+(define-public python-binaryornot
+ (package
+ (name "python-binaryornot")
+ (version "0.4.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "binaryornot" version))
+ (sha256
+ (base32
+ "1j4f51dxic39mdwf6alj7gd769wy6mhk916v031wjali51xkh3xb"))))
+ (build-system python-build-system)
+ (inputs
+ `(("python-chardet" ,python-chardet)
+ ("python-hypothesis" ,python-hypothesis)))
+ (home-page "https://github.com/audreyr/binaryornot")
+ (synopsis "Package to check if a file is binary or text")
+ (description "Ultra-lightweight pure Python package to check if a file is
+binary or text.")
+ (license license:bsd-3)
+ (properties `((python2-variant . ,(delay python2-binaryornot))))))
+
+(define-public python2-binaryornot
+ (let ((base (package-with-python2 (strip-python2-variant
python-binaryornot))))
+ (package (inherit base)
+ (native-inputs
+ `(("python2-setuptools" ,python2-setuptools)
+ ,@(package-native-inputs base)))
+ (inputs
+ `(("python2-enum34" ,python2-enum34)
+ ,@(package-inputs base))))))
- branch master updated (1ae27aa -> 520af15), David Craven, 2016/08/28
- 03/11: gnu: Add python-binaryornot.,
David Craven <=
- 07/11: gnu: Add python-schematics., David Craven, 2016/08/28
- 10/11: gnu: Add python-url., David Craven, 2016/08/28
- 11/11: gnu: python-ipaddress: Update to 1.0.16., David Craven, 2016/08/28
- 04/11: gnu: Add python-nltk., David Craven, 2016/08/28
- 08/11: gnu: Add python-publicsuffix., David Craven, 2016/08/28
- 09/11: gnu: Add python-publicsuffix2., David Craven, 2016/08/28
- 05/11: gnu: Add python-pymongo., David Craven, 2016/08/28
- 01/11: import: Importers return prefixed licenses., David Craven, 2016/08/28
- 06/11: gnu: Add python-sh., David Craven, 2016/08/28
- 02/11: gnu: python: Import guix licenses with #:prefix license:., David Craven, 2016/08/28