guix-patches
[Top][All Lists]
Advanced

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

[bug#49464] [PATCH v2 2/3] gnu: Add python-makefun.


From: Dhruvin Gandhi
Subject: [bug#49464] [PATCH v2 2/3] gnu: Add python-makefun.
Date: Thu, 8 Jul 2021 17:53:19 +0530

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index f16bff460a..87f81687ff 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -103,6 +103,7 @@
 ;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
+;;; Copyright © 2021 Dhruvin Gandhi <contact@dhruvin.dev>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -12852,6 +12853,33 @@ python-xdo for newer bindings.)")
 (define-public python2-xdo
   (package-with-python2 python-xdo))
 
+(define-public python-makefun
+  (package
+    (name "python-makefun")
+    (version "1.11.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "makefun" version))
+       (sha256
+        (base32
+         "1378qarb4m3yvk2w36m8686nbf4bzk8kh6hnhk54z061w9jysgh3"))))
+    (build-system python-build-system)
+    (arguments
+     ;; Tests require too many packages, some with circular dependencies.
+     '(#:tests? #f))
+    (native-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)))
+    (home-page
+     "https://smarie.github.io/python-makefun/";)
+    (synopsis
+     "Small library to dynamically create python functions")
+    (description
+     "Helps you create functions dynamically, with the signature of your
+choice.  It was largely inspired by decorator and functools, and created
+mainly to cover some of their limitations.")
+    (license license:bsd-3)))
+
 (define-public python-mako
   (package
     (name "python-mako")
-- 
2.32.0






reply via email to

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