guix-patches
[Top][All Lists]
Advanced

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

[bug#40511] [REDO 1] [PATCH 2/10] gnu: Add python-jaraco-functools.


From: Christopher Lemmer Webber
Subject: [bug#40511] [REDO 1] [PATCH 2/10] gnu: Add python-jaraco-functools.
Date: Tue, 28 Apr 2020 16:18:15 -0400
User-agent: mu4e 1.2.0; emacs 26.3

From 7b6c006f28eb431df85967881e2d7309591c5afa Mon Sep 17 00:00:00 2001
From: Christopher Lemmer Webber <address@hidden>
Date: Tue, 28 Apr 2020 15:19:04 -0400
Subject: [PATCH 02/10] gnu: Add python-jaraco-functools.

* gnu/packages/python-xyz.scm (python-jaraco-functools): New variable.
---
 gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3998475c3d..8e0112883d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19626,3 +19626,43 @@ Open Sound Control 1.0} specification.")
      "This package provides utility functions for Python class constructs.")
     (license license:expat)))
 
+(define-public python-jaraco-functools
+  (package
+    (name "python-jaraco-functools")
+    (version "3.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "jaraco.functools" version))
+       (sha256
+        (base32
+         "15vd7x4jillggb8xcg3cm00j1v6llhl16r0rqm0l4n2lyahfxc2w"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         ;; Not importing the googleapis package for now
+         (add-after 'unpack 'ignore-googleapis
+           (lambda _
+             (substitute* "setup.py"
+               (("'pytest-black-multipy',") ""))
+             #t)))))
+    (propagated-inputs
+     `(("python-more-itertools" ,python-more-itertools)))
+    (native-inputs
+     `(("python-mock" ,python-mock)
+       ("python-jaraco-classes" ,python-jaraco-classes)
+       ("python-pytest" ,python-pytest)
+       ("python-pytest-checkdocs"
+        ,python-pytest-checkdocs)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-pytest-flake8" ,python-pytest-flake8)
+       ("python-six" ,python-six)
+       ("python-setuptools-scm" ,python-setuptools-scm)))
+    (home-page
+     "https://github.com/jaraco/jaraco.functools";)
+    (synopsis "Functools like those found in stdlib")
+    (description
+     "This package provides functools like those found in stdlib.")
+    (license license:expat)))
+
-- 
2.26.0

Attachment: signature.asc
Description: PGP signature


reply via email to

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