diff options
author | David Craven <david@craven.ch> | 2016-08-05 19:25:15 +0200 |
---|---|---|
committer | David Craven <david@craven.ch> | 2016-08-28 14:04:51 +0200 |
commit | 8794bd8bb304035a106614854f881749ed131b15 (patch) | |
tree | 3f8af2aa43df66f23654e55d1273deb23962079f /gnu | |
parent | 3f641af088180576484a58ab45a3cae92332070a (diff) | |
download | guix-8794bd8bb304035a106614854f881749ed131b15.tar guix-8794bd8bb304035a106614854f881749ed131b15.tar.gz |
gnu: Add python-binaryornot.
* gnu/packages/python.scm (python-binaryornot): New variable.
(python2-binaryornot): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python.scm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 15ff14deed..77996e64b2 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)))))) |