diff mbox series

[bug#35598,2/6] gnu: Add python-whichcraft, python2-whichcraft

Message ID 20190506030507.5469-3-pritchard.calvin@gmail.com
State Accepted
Headers show
Series Add Mesa agent based modeling platform | expand

Checks

Context Check Description
cbaines/applying patch success Successfully applied
cbaines/applying patch success Successfully applied
cbaines/applying patch success Successfully applied

Commit Message

Calvin Pritchard May 6, 2019, 3:05 a.m. UTC
From: Calvin Pritchard <calvin.pritchard@asu.edu>

* gnu/packages/python-xyz.scm (python-whichcraft, python2-whichcraft).
  New variables.
---
 gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bdc6f408f0..4cee74591d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -2180,6 +2180,31 @@  Simply put, it helps you work with dates and times with fewer imports
 and a lot less code.")
     (license license:asl2.0)))
 
+(define-public python-whichcraft
+  (package
+    (name "python-whichcraft")
+    (version "0.5.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "whichcraft" version))
+       (sha256
+        (base32
+         "058qr17inlhp9354q1lr0qq31yhqzfd405djp1fzqzr33x9xvkgy"))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
+    (home-page
+     "https://github.com/pydanny/whichcraft")
+    (synopsis
+     "Provides cross-platform cross-python shutil.which")
+    (description
+     "This package provides cross-platform cross-python shutil.which functionality.")
+    (license license:bsd-3)))
+
+(define-public python2-whichcraft
+  (package-with-python2 python-whichcraft))
+
 (define-public python-pympler
   (package
     (name "python-pympler")