all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Vinicius Monego <monego@posteo.net>
To: 70924@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#70924] [PATCH 01/10] gnu: Add python-memory-allocator.
Date: Mon, 13 May 2024 20:52:06 +0000	[thread overview]
Message-ID: <676c926b816fad99606d7803b3b43156fe4696a1.1715633288.git.monego@posteo.net> (raw)
In-Reply-To: <cover.1715632275.git.monego@posteo.net>

* gnu/packages/sagemath.scm (python-memory-allocator): New variable.

Change-Id: Ib914cc736fa16c2a7bb2919d94aaf102e3513a60
---
 gnu/packages/sagemath.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/sagemath.scm b/gnu/packages/sagemath.scm
index 8d5d04ee93..9ccb7eb055 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)
@@ -94,6 +96,35 @@ (define-public python-gmpy2
 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))
+    (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")

base-commit: 89cd778f6a45cd9b43a4dc1f236dcd0a87af955c
-- 
2.39.2





  reply	other threads:[~2024-05-13 20:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-13 20:50 [bug#70924] [PATCH 00/10] Add some SageMath standard packages Vinicius Monego
2024-05-13 20:52 ` Vinicius Monego [this message]
2024-05-13 20:52   ` [bug#70924] [PATCH 02/10] gnu: Add python-calver Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 03/10] gnu: Add python-async-lru Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 04/10] gnu: Add python-isoduration Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 05/10] gnu: Add python-uri-template Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 06/10] gnu: Add python-pyproject-api Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 07/10] gnu: Add primecount Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 08/10] gnu: Add python-primecountpy Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 09/10] gnu: Add python-types-dateutil Vinicius Monego
2024-05-13 20:52   ` [bug#70924] [PATCH 10/10] gnu: Add python-pplpy Vinicius Monego
2024-05-14 15:11 ` [bug#70924] [PATCH 00/10] Add some SageMath standard packages Vinicius Monego

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=676c926b816fad99606d7803b3b43156fe4696a1.1715633288.git.monego@posteo.net \
    --to=monego@posteo.net \
    --cc=70924@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.