GNU bug report logs - #76548
[PATCH] gnu: Add python-pyattributes.

Previous Next

Package: guix-patches;

Reported by: Cayetano Santos <csantosb <at> inventati.org>

Date: Tue, 25 Feb 2025 10:44:02 UTC

Severity: normal

Tags: patch

Done: Cayetano Santos <csantosb <at> inventati.org>

Full log


View this message in rfc822 format

From: Cayetano Santos <csantosb <at> inventati.org>
To: 76548 <at> debbugs.gnu.org
Cc: Cayetano Santos <csantosb <at> inventati.org>
Subject: [bug#76548] [PATCH] gnu: Add python-pyattributes.
Date: Tue, 25 Feb 2025 11:41:42 +0100
* gnu/packages/python-xyz.scm (python-pyattributes): New variable.

Change-Id: I0b52605a59d39a483bd7e21818f29db0b705913e
---

pyattributes <at> 2.5.1 is a requirement to build ghdl-language-server <at> 4.1.0.

pytooling <at> 4.0.1 (in another patch) is required to build pyattributes <at> 2.5.1.

 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





This bug report was last modified 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.