guix-commits
[Top][All Lists]
Advanced

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

24/29: gnu: Add python-deprecation.


From: guix-commits
Subject: 24/29: gnu: Add python-deprecation.
Date: Tue, 13 Apr 2021 07:51:55 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit c00996fdbe39d5b3ac4dc63eda45e7eb5b13e0f4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Apr 13 12:34:52 2021 +0200

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 003c72f..f529be2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -11656,6 +11656,32 @@ Pytest but stripped of Pytest specific details.")
 code.")
     (license license:expat)))
 
+(define-public python-deprecation
+  (package
+    (name "python-deprecation")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "deprecation" version))
+       (sha256
+        (base32
+         "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-packaging" ,python-packaging)))
+    (native-inputs
+     `(("python-unittest2" ,python-unittest2)))
+    (home-page "https://deprecation.readthedocs.io/";)
+    (synopsis "Python library to handle automated deprecations")
+    (description
+     "This is a library that enables automated deprecations.  It offers the
+@code{deprecated()} decorator to wrap functions, providing proper warnings
+both in documentation and via Python’s warnings system, as well as the
+@code{deprecation.fail_if_not_removed()} decorator for test methods to ensure
+that deprecated code is eventually removed.")
+    (license license:asl2.0)))
+
 (define-public python-tox
   (package
     (name "python-tox")



reply via email to

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