From abbcd5e08f263feeb4130496fde24f28d358190c Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 21:17:39 +0100 Subject: [PATCH v4 07/18] gnu: Add python-makefun. * gnu/packages/python-xyz.scm (python-makefun): New variable. --- gnu/packages/python-xyz.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9c97b246fd..660d6087c1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25487,6 +25487,28 @@ (define-public python-flake8-array-spacing array-like variables.") (license license:bsd-3))) +(define-public python-makefun + (package + (name "python-makefun") + (version "1.13.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "makefun" version)) + (sha256 + (base32 + "1gqnqvwzig9ym4nyzwy6dzra7sg6339rdaca59fvkfzzf2vbhnwq")))) + (build-system python-build-system) + (native-inputs (list python-pytest python-pytest-runner + python-setuptools-scm)) + (home-page "https://github.com/smarie/python-makefun") + (synopsis "Small library to dynamically create python functions") + (description + "@samp{makefun} helps you create functions dynamically, with the +signature of your choice. It was largely inspired by @samp{decorator} and +@samp{functools}, and created mainly to cover some of their limitations.") + (license license:bsd-3))) + (define-public python-frozendict (package (name "python-frozendict") -- 2.34.0