guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: Add python-funcy.


From: Danny Milosavljevic
Subject: 02/03: gnu: Add python-funcy.
Date: Tue, 6 Feb 2018 06:13:37 -0500 (EST)

dannym pushed a commit to branch master
in repository guix.

commit 7e2dd00bfb2d1a5522bb35d876f2a0344034df48
Author: Danny Milosavljevic <address@hidden>
Date:   Tue Feb 6 10:55:24 2018 +0100

    gnu: Add python-funcy.
    
    * gnu/packages/python.scm (python-funcy, python2-funcy): New variables.
---
 gnu/packages/python.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7838207..a6de455 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -12479,3 +12479,56 @@ functions by partial application of operators.")
 
 (define-public python2-whatever
   (package-with-python2 python-whatever))
+
+(define-public python-funcy
+  (package
+    (name "python-funcy")
+    (version "1.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/Suor/funcy/archive/"; version
+                           ".tar.gz"))
+       (sha256
+        (base32
+         "1fanxivsip29vgarw6dn39xym3q4pbxcpa11plpp548lvxajpahz"))
+       (file-name (string-append name "-" version ".tar.gz"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (invoke "py.test"))))))
+    (native-inputs
+     `(("python-pytest-3.0" ,python-pytest-3.0)
+       ("python-pytest-warnings" ,python-pytest-warnings)
+       ("python-whatever" ,python-whatever)))
+    (home-page "http://github.com/Suor/funcy";)
+    (synopsis "Functional tools")
+    (description "@code{funcy} is a library that provides functional tools.
+Examples are:
address@hidden
address@hidden merge - Merges collections of the same type
address@hidden walk - Type-preserving map
address@hidden select - Selects a part of a collection
address@hidden take - Takes the first n items of a collection
address@hidden first - Takes the first item of a collection
address@hidden remove - Predicated-removes items of a collection
address@hidden concat - Concatenates two collections
address@hidden flatten - Flattens a collection with subcollections
address@hidden distinct - Returns only distinct items
address@hidden split - Predicated-splits a collection
address@hidden split_at - Splits a collection at a given item
address@hidden group_by - Groups items by group
address@hidden pairwise - Pairs off adjacent items
address@hidden partial - Partially-applies a function
address@hidden curry - Curries a function
address@hidden compose - Composes functions
address@hidden complement - Complements a predicate
address@hidden all_fn - \"all\" with predicate
address@hidden enumerate")
+    (license license:bsd-3)))
+
+(define-public python2-funcy
+  (package-with-python2 python-funcy))



reply via email to

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