guix-commits
[Top][All Lists]
Advanced

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

14/46: gnu: Add python-zope-deferredimport.


From: guix-commits
Subject: 14/46: gnu: Add python-zope-deferredimport.
Date: Tue, 21 Jul 2020 08:49:37 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 2ed6491f9c07c06537ed43db12e23c829da96622
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jul 21 11:11:11 2020 +0300

    gnu: Add python-zope-deferredimport.
    
    * gnu/packages/python-web.scm (python-zope-deferredimport): New variable.
---
 gnu/packages/python-web.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 5cfc6b9..77a6e95 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1492,6 +1492,32 @@ facilities for defining, registering and looking up 
components.")
 (define-public python2-zope-component
   (package-with-python2 python-zope-component))
 
+(define-public python-zope-deferredimport
+  (package
+    (name "python-zope-deferredimport")
+    (version "4.3.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "zope.deferredimport" version))
+        (sha256
+         (base32
+          "1q89v54dwniiqypjbwywwdfjdr4kdkqlyqsgrpplgvsygdg39cjp"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-zope-proxy" ,python-zope-proxy)))
+    (native-inputs
+     `(("python-zope-testrunner" ,python-zope-testrunner)))
+    (home-page "https://github.com/zopefoundation/zope.deferredimport";)
+    (synopsis "Defer imports until used by code")
+    (description
+     "Often, especially for package modules, you want to import names for
+convenience, but not actually perform the imports until necessary.  The
+@code{zope.deferredimport} package provided facilities for defining names in
+modules that will be imported from somewhere else when used.  You can also 
cause
+deprecation warnings to be issued when a variable is used.")
+    (license license:zpl2.1)))
+
 (define-public python-ndg-httpsclient
   (package
     (name "python-ndg-httpsclient")



reply via email to

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