[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: Add python-cysignals.
From: |
Andreas Enge |
Subject: |
01/02: gnu: Add python-cysignals. |
Date: |
Wed, 06 Apr 2016 22:45:38 +0000 |
andreas pushed a commit to branch master
in repository guix.
commit 8e451885251c62198e8d20ae6c27ac34f9aceca7
Author: Andreas Enge <address@hidden>
Date: Wed Apr 6 20:49:40 2016 +0200
gnu: Add python-cysignals.
* gnu/packages/python.scm (python-cysignals, python2-cysignals): New
variables.
---
gnu/packages/python.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 47 insertions(+), 1 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 25bed2a..58e32db 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1,7 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <address@hidden>
;;; Copyright © 2013, 2014, 2015, 2016 Ludovic Courtès <address@hidden>
-;;; Copyright © 2013, 2014, 2015 Andreas Enge <address@hidden>
+;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge <address@hidden>
;;; Copyright © 2014, 2015 Mark H Weaver <address@hidden>
;;; Copyright © 2014 Eric Bavier <address@hidden>
;;; Copyright © 2014, 2015 Federico Beffa <address@hidden>
@@ -42,6 +42,7 @@
zpl2.1))
#:use-module ((guix licenses) #:select (expat zlib) #:prefix license:)
#:use-module (gnu packages)
+ #:use-module (gnu packages algebra)
#:use-module (gnu packages attr)
#:use-module (gnu packages backup)
#:use-module (gnu packages compression)
@@ -8660,3 +8661,48 @@ LDFLAGS and parse the output to build extensions with
setup.py.")
(define-public python2-pkgconfig
(package-with-python2 python-pkgconfig))
+(define-public python-cysignals
+ (package
+ (name "python-cysignals")
+ (version "1.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "cysignals" version ".tar.bz2"))
+ (sha256
+ (base32
+ "14cbyd9znlz6cxy1s3g6v6dv5jj45hn27pywkidd9b1zanaysqc6"))))
+ (build-system python-build-system)
+ (native-inputs
+ `(("python-cython" ,python-cython)
+ ("python-setuptools" ,python-setuptools)
+ ("python-sphinx" ,python-sphinx)))
+ (inputs
+ `(("pari-gp" ,pari-gp)))
+ (arguments
+ `(#:modules ((guix build python-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
+ ;; FIXME: Tests are executed after installation and currently fail
+ ;; when not installing into standard locations; the author is working
+ ;; on a fix.
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-before
+ 'build 'configure
+ (assoc-ref gnu:%standard-phases 'configure)))))
+ (home-page
+ "https://github.com/sagemath/cysignals";)
+ (synopsis
+ "Handling of interrupts and signals for Cython")
+ (description
+ "The cysignals package provides mechanisms to handle interrupts (and
+other signals and errors) in Cython code, using two related approaches,
+for mixed Cython/Python code or external C libraries and pure Cython code,
+respectively.")
+ (license lgpl3+)))
+
+(define-public python2-cysignals
+ (package-with-python2 python-cysignals))
+