guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

103/299: gnu: Add python-propcache.


From: guix-commits
Subject: 103/299: gnu: Add python-propcache.
Date: Mon, 13 Jan 2025 15:18:08 -0500 (EST)

rekado pushed a commit to branch python-team
in repository guix.

commit 6d2e46ff2d5baf1e4abc2686e8b57bb902bc5f1d
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed Jan 1 21:32:09 2025 +0100

    gnu: Add python-propcache.
    
    * gnu/packages/python-xyz.scm (python-propcache): New variable.
    
    Change-Id: Id02eb09da7adbdc965065a3473d9567edafbf6a7
---
 gnu/packages/python-xyz.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ec4637d937..cd7cf53c9b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9896,6 +9896,44 @@ To address this and enable easy cycling over arbitrary 
@code{kwargs}, the
 convert between colorspaces like sRGB, XYZ, CIEL*a*b*, CIECAM02, CAM02-UCS, 
etc.")
     (license license:expat)))
 
+(define-public python-propcache
+  (package
+    (name "python-propcache")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "propcache" version))
+       (sha256
+        (base32 "0r4sq2j6s63wziw8fhnrx0lxlg8ch3z2i6a92ivm7jqridrcwxrz"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags '(list "--ignore=tests/test_benchmarks.py")
+      #:phases
+      '(modify-phases %standard-phases
+         (add-after 'unpack 'patch-build-system
+           (lambda _
+             ;; XXX: I don't know how to tell it to build the extensions in
+             ;; place.
+             (substitute* "packaging/pep517_backend/_backend.py"
+               (("build_inplace=False") "build_inplace=True")))))))
+    (native-inputs
+     (list python-covdefaults
+           python-cython-3
+           python-expandvars
+           python-pytest
+           python-pytest-cov
+           python-pytest-xdist
+           python-setuptools
+           python-tomli
+           python-wheel))
+    (home-page "https://github.com/aio-libs/propcache";)
+    (synopsis "Accelerated property cache")
+    (description "The module provides a fast implementation of cached
+properties for Python 3.9+.")
+    (license license:asl2.0)))
+
 (define-public python-proto-matcher
   (package
     (name "python-proto-matcher")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]