aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorVinicius Monego <monego@posteo.net>2024-05-13 20:52:06 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-10-24 10:59:59 +0100
commita47a1ff036637a53a50ba775fe454ab34635041b (patch)
tree66246fe45dd9ae5c043f0d51419ca16a7409a02d /gnu/packages
parent116a6c78f131768c95af068d7ef8f11c430ac51f (diff)
downloadguix-a47a1ff036637a53a50ba775fe454ab34635041b.tar
guix-a47a1ff036637a53a50ba775fe454ab34635041b.tar.gz
gnu: Add python-memory-allocator.
* gnu/packages/sagemath.scm (python-memory-allocator): New variable. Change-Id: Ib914cc736fa16c2a7bb2919d94aaf102e3513a60 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/sagemath.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm
index 02201a9343..3b7f63bcfd 100644
--- a/gnu/packages/sagemath.scm
+++ b/gnu/packages/sagemath.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2024 Vinicius Monego <monego@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23,6 +24,7 @@
(define-module (gnu packages sagemath)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -42,6 +44,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages popt)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz))
@@ -96,6 +99,36 @@ but it can be used independently.")
libraries GMO, MPFR and MPC.")
(license license:lgpl3+)))
+(define-public python-memory-allocator
+ (package
+ (name "python-memory-allocator")
+ (version "0.1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "memory_allocator" version))
+ (sha256
+ (base32 "1r7g175ddbpn5kjgs6f09s7mfachzw94p02snki6f6830dmj22fn"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-cython python-setuptools))
+ (home-page "https://github.com/sagemath/memory_allocator")
+ (synopsis "Extension class to allocate memory easily with Cython")
+ (description "This package provides a single extension class
+ @code{MemoryAllocator} with @{cdef} methods
+
+@itemize
+@item @code{malloc}
+@item @code{calloc}
+@item @code{allocarray}
+@item @code{realloc}
+@item @code{reallocarray}
+@item @code{aligned_malloc}
+@item @code{aligned_malloc}
+@item @code{aligned_calloc}
+@item @code{aligned_allocarray}")
+ (license license:gpl3+)))
+
(define-public cliquer
(package
(name "cliquer")