Mirror of GNU Guix
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
4.3 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2019 Andreas Enge <andreas@enge.fr>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages sagemath)
  19. #:use-module ((guix licenses) #:prefix license:)
  20. #:use-module (guix packages)
  21. #:use-module (guix download)
  22. #:use-module (guix build-system gnu)
  23. #:use-module (guix build-system python)
  24. #:use-module (gnu packages algebra)
  25. #:use-module (gnu packages compression)
  26. #:use-module (gnu packages multiprecision)
  27. #:use-module (gnu packages python)
  28. #:use-module (gnu packages python-xyz))
  29. (define-public python-cypari2
  30. (package
  31. (name "python-cypari2")
  32. (version "2.1.1")
  33. (source
  34. (origin
  35. (method url-fetch)
  36. (uri (pypi-uri "cypari2" version))
  37. (sha256
  38. (base32
  39. "1nwkzgqvbw6361x0rpggy1q5nx663fswhpvg8md6xhqyfwpgc7nz"))))
  40. (build-system python-build-system)
  41. (native-inputs
  42. `(("python-cython" ,python-cython)))
  43. (propagated-inputs
  44. `(("python-cysignals" ,python-cysignals)))
  45. (inputs
  46. `(("gmp" ,gmp)
  47. ("pari-gp", pari-gp)))
  48. (home-page "https://cypari2.readthedocs.io/")
  49. (synopsis
  50. "Python interface to the number theory library libpari")
  51. (description
  52. "Cypari2 provides a Python interface to the number theory library
  53. PARI/GP. It has been spun off from the SageMath mathematics software system,
  54. but it can be used independently.")
  55. (license license:gpl2+)))
  56. (define-public python2-cypari2
  57. (package-with-python2 python-cypari2))
  58. ;; The stable version of the following package is not young enough to be
  59. ;; used with Sage, since it does not support cython. One would need to
  60. ;; use an alpha release. On the other hand, Sage can be built without it.
  61. (define-public python-gmpy2
  62. (package
  63. (name "python-gmpy2")
  64. (version "2.0.8")
  65. (source (origin
  66. (method url-fetch)
  67. (uri (pypi-uri "gmpy2" version ".zip"))
  68. (sha256
  69. (base32
  70. "0grx6zmi99iaslm07w6c2aqpnmbkgrxcqjrqpfq223xri0r3w8yx"))))
  71. (build-system python-build-system)
  72. (native-inputs
  73. `(("unzip" ,unzip)))
  74. (inputs
  75. `(("gmp" ,gmp)
  76. ("mpfr" ,mpfr)
  77. ("mpc" ,mpc)))
  78. (home-page "https://github.com/aleaxit/gmpy")
  79. (synopsis
  80. "GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x")
  81. (description
  82. "This package provides a Python interface to the GNU multiprecision
  83. libraries GMO, MPFR and MPC.")
  84. (license license:lgpl3+)))
  85. (define-public python2-gmpy2
  86. (package-with-python2 python-gmpy2))
  87. (define-public cliquer
  88. (package
  89. (name "cliquer")
  90. (version "1.21")
  91. ;; The original source package is available from the home page and
  92. ;; has not seen any release since 2010; it comes with only a Makefile
  93. ;; without an "install" target. Instead, there is an autotoolized
  94. ;; tarball available from the Sage project.
  95. (source
  96. (origin
  97. (method url-fetch)
  98. (uri "http://users.ox.ac.uk/~coml0531/sage/cliquer-1.21.tar.gz")
  99. (sha256
  100. (base32
  101. "1hdzrmrx0nvvj8kbwxrs8swqgkd284khzl623jizixcv28xb77aq"))))
  102. (build-system gnu-build-system)
  103. (synopsis "C routines for finding cliques in weighted graphs")
  104. (description "Cliquer is a set of reentrant C routines for finding
  105. cliques in a weighted or unweighted graph. It uses an exact
  106. branch-and-bound algorithm. It can search for maximum or maximum-weight
  107. cliques or cliques with size or weight within a given range, restrict the
  108. search to maximal cliques, store cliques in memory and call a user-defined
  109. function for every found clique.")
  110. (license license:gpl2+)
  111. (home-page "https://users.aalto.fi/~pat/cliquer.html")))