summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-06-15 20:42:18 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-06-15 20:42:49 +0100
commitd4819e619247182338af6d285a70fe7f0ed50dcd (patch)
tree42b60119e66bb06b3ed70ff816b660a23fde36f9
parent5c0922357fc383bffd35aa27a0f9d17583b25e5d (diff)
gnu: python-flint: Build with pyproject-build-system.
* gnu/packages/algebra.scm (python-flint) [build-system]: Use pyproject. [arguments] <test-flags>: Provide "--pyargs=flint" to test against installed library. [native-inputs]: Add meson-python, pkg-config and python-pytest. [home-page]: Move above synopsis. [description]: Fix fill column indentation. Change-Id: I04f6d46da26b5979fa2637bd911012dc13a1ee4a
-rw-r--r--gnu/packages/algebra.scm44
1 files changed, 26 insertions, 18 deletions
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 06adbc0beb..4412b2f689 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -41,6 +41,7 @@
#:use-module (gnu packages bash)
#:use-module (gnu packages bison)
#:use-module (gnu packages boost)
+ #:use-module (gnu packages build-tools)
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages cpp)
@@ -528,31 +529,38 @@ fast arithmetic.")
(package
(name "python-flint")
(version "0.7.1")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/fredrik-johansson/python-flint")
- (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "09nsys2cajxsfh2c13nf98a2kwnm0msmab9f9zcjpkndj4ir453a"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/fredrik-johansson/python-flint")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "09nsys2cajxsfh2c13nf98a2kwnm0msmab9f9zcjpkndj4ir453a"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags #~(list "--pyargs" "flint")))
(native-inputs
- (list python-cython-3))
+ (list meson-python
+ pkg-config
+ python-cython-3
+ python-pytest))
+ (inputs
+ (list gmp
+ flint))
(propagated-inputs
(list python-numpy))
- (inputs
- (list flint))
+ (home-page "https://fredrikj.net/python-flint/")
(synopsis "Python module wrapping ARB and FLINT")
(description
"Python-flint is a Python extension module wrapping FLINT
(Fast Library for Number Theory) and Arb (arbitrary-precision ball
-arithmetic). It supports integers, rationals, modular integers,
-real and complex ball arithmetic, polynomials and matrices over all
-these types and other mathematical functions.")
- (license license:expat)
- (home-page "https://fredrikj.net/python-flint/")))
+arithmetic). It supports integers, rationals, modular integers, real and
+complex ball arithmetic, polynomials and matrices over all these types and
+other mathematical functions.")
+ (license license:expat)))
(define-public ntl
(package