From 74564436748b32ea7445f549d3e9ac04986a089b Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 21:17:39 +0100 Subject: [PATCH 07/18] gnu: Add python-makefun. * gnu/packages/python-xyz.scm (python-makefun): New variable. --- gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 8b27d4b490..6a0d176304 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28961,3 +28961,24 @@ (define-public python-flake8-array-spacing (synopsis "flake8 plugin to make exceptions for array-like variables") (description "Recast some E2XX errors as A2XX with exceptions for 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))) -- 2.34.0