Subject: [PATCH] gnu: Add python-pyattributes.

From: Cayetano Santos <[email-masked]>
Date: Tue, 25 Feb 2025 11:41:42 +0100

* gnu/packages/python-xyz.scm (python-pyattributes): New variable.

Change-Id: I0b52605a59d39a483bd7e21818f29db0b705913e
---

[email-masked] is a requirement to build [email-masked].

[email-masked] (in another patch) is required to build [email-masked].

 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 34d20dda8a..c2760e2f3d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17830,6 +17830,32 @@ (define-public python-pyasn1-modules
 implementations of ASN.1-based codecs and protocols.")
     (license license:bsd-3)))
 
+(define-public python-pyattributes
+  (package
+    (name "python-pyattributes")
+    (version "2.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pyAttributes" version))
+       (sha256
+        (base32 "17bmcc5xiccrj7q6grb9br1lds9977xpxyrgn0arw4nzcb4d4ivz"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'build 'create-dummy-requirements
+            (lambda _
+              (invoke "touch" "requirements.txt"))))))
+    (propagated-inputs (list python-argcomplete python-pytooling-4))
+    (native-inputs (list python-setuptools python-wheel))
+    (home-page "https://pypi.org/project/pyAttributes/")
+    (synopsis "Python decorators implementing .NET-like attributes")
+    (description "PyAttributes offers a mixin-class to ease using classes
+having annotated methods.")
+    (license license:asl2.0)))
+
 (define-public python-ipaddress
   (package
     (name "python-ipaddress")

base-commit: 150df457d1e269790f184510c58d031ee00a9ebb
--
2.48.1