guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 04/12] gnu: python: Add python-binaryornot.


From: David Craven
Subject: [PATCH 04/12] gnu: python: Add python-binaryornot.
Date: Fri, 5 Aug 2016 20:37:22 +0200

* gnu/packages/python.scm (python-binaryornot): New package.
  (python2-binaryornot): New package.
---
 gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index fc52b6c..bea635c 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9809,3 +9809,32 @@ etc.")
     (package
       (inherit base)
       (name "ptpython2"))))
+
+(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)
+    (propagated-inputs
+     `(("python-hypothesis" ,python-hypothesis)))
+    (inputs
+     `(("python-chardet" ,python-chardet)
+       ("python-setuptools" ,python-setuptools)))
+    (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)))
+
+(define-public python2-binaryornot
+  (let ((binaryornot (package-with-python2 python-binaryornot)))
+    (package (inherit binaryornot)
+      (propagated-inputs
+        `(("python2-enum34" ,python2-enum34)
+          ,@(package-propagated-inputs binaryornot))))))
-- 
2.9.0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]