From 25cbaa9e705a4d8cde39b5a83c4c54114db45984 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 20 Jun 2019 11:07:12 +0200 Subject: gnu: Add python-fpylll. * gnu/packages/algebra.scm (python-fpylll): New variable. --- gnu/packages/algebra.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm index 8d7c9709d1..22d458d36d 100644 --- a/gnu/packages/algebra.scm +++ b/gnu/packages/algebra.scm @@ -189,6 +189,38 @@ that computes a lattice vector closest to a given vector belonging to the real span of the lattice.") (license license:lgpl2.1+))) +(define-public python-fpylll + (package + (name "python-fpylll") + (version "0.4.1") + (source + (origin + ;; Pypi contains and older release, so we use a tagged release from + ;; Github instead. + (method git-fetch) + (uri (git-reference + (url "https://github.com/fplll/fpylll.git") + (commit (string-append version "dev")))) + (sha256 + (base32 + "01x2sqdv0sbjj4g4waj0hj4rcn4bq7h17442xaqwbznym9azmn9w")))) + (build-system python-build-system) + (inputs + `(("fplll" ,fplll) + ("gmp" ,gmp) + ("mpfr" ,mpfr) + ("pari-gp" ,pari-gp))) + (propagated-inputs + `(("cysignals" ,python-cysignals) + ("cython" ,python-cython) + ("flake8" ,python-flake8) + ("numpy" ,python-numpy) + ("pytest" ,python-pytest))) + (home-page "https://github.com/fplll/fpylll") + (synopsis "Python interface for fplll") + (description "fpylll is a Python wrapper for fplll.") + (license license:gpl2+))) + (define-public pari-gp (package (name "pari-gp") -- cgit 1.4.1