From 95c3c667967d7e1a995a8d51d48e122536c6db0b Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Thu, 20 Jan 2022 22:32:53 +0100 Subject: [PATCH v4 09/18] gnu: Add a test-less python-decopatch. * gnu/packages/python-xyz.scm (python-decopatch-minimal): New variable. --- gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5753101a2b..f1b68b3e39 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -25530,6 +25530,36 @@ (define-public python-pytest-logging @code{py.test} flag.") (license license:asl2.0))) +;; decopatch requires the next pytest modules if tests are enabled. The pytest +;; modules require each other for tests. + +(define python-decopatch-minimal + (package + (name "python-decopatch-minimal") + (version "1.4.8") + (source + (origin + (method url-fetch) + (uri (pypi-uri "decopatch" version)) + (sha256 + (base32 + "0i6i811s2j1z0cl6y177dwsbfxib8dvb5c2jpgklvc2xy4ahhsy6")))) + (build-system python-build-system) + (arguments + `(#:tests? #f)) + (propagated-inputs (list python-makefun)) + (native-inputs (list python-pytest python-pytest-runner + python-setuptools-scm)) + (home-page "https://github.com/smarie/python-decopatch") + (synopsis "Python decorators made easy") + (description + "Because of a tiny oddity in the python language, writing decorators +without help can be a pain because you have to handle the no-parenthesis usage +@url{https://smarie.github.io/python-decopatch/motivation, explicitly}. +@samp{decopatch} provides a simple way to solve this issue so that writing +decorators is simple and straightforward.") + (license license:bsd-3))) + (define-public python-frozendict (package (name "python-frozendict") -- 2.34.0