diff options
Diffstat (limited to 'gn/packages/python24.scm')
-rw-r--r-- | gn/packages/python24.scm | 112 |
1 files changed, 61 insertions, 51 deletions
diff --git a/gn/packages/python24.scm b/gn/packages/python24.scm index bae5304..8dc237f 100644 --- a/gn/packages/python24.scm +++ b/gn/packages/python24.scm @@ -3,10 +3,12 @@ #:use-module (guix utils) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix git-download) #:use-module (guix build-system python) #:use-module (gn packages python) #:use-module (past packages python) #:use-module (gnu packages compression) + #:use-module (gnu packages databases) #:use-module (gnu packages maths) #:use-module (gnu packages python-xyz) #:use-module (srfi srfi-1)) @@ -126,55 +128,6 @@ pre-defined variants." (description "Stand-alone Assertions for Python") (license license:expat))) -(define-public python24-pyx - (package - (name "python24-pyx") - (version "0.12.1") - (source - (origin - (method url-fetch) - (uri (pypi-uri "pyx" version)) - (sha256 - (base32 - "13kyhqx19rw7dlv2xapdb68j8l9laq6nrpgkyd6549qwidmb4dz8")))) - (build-system python-build-system) - (arguments - `(#:python ,python-2.4 - #:use-setuptools? #f - #:tests? #f)) ; tests not included - (properties '((release-date "2012-10-26"))) - (home-page "https://pyx-project.org/") - (synopsis "Python package for the generation of PostScript, PDF, and SVG files") - (description "Python package for the generation of PostScript, PDF, and SVG files.") - (license license:gpl2+))) - -(define-public python24-pyxlwriter - (package - (name "python24-pyxlwriter") - (version "0.4a3") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://sourceforge/pyxlwriter/pyxlwriter/" - version "/pyXLWriter-" version ".zip")) - (sha256 - (base32 - "1kfsi6la9y53rwayszgayfmkjfknpp650v69a0hwd1fcfk1df735")))) - (build-system python-build-system) - (arguments - `(#:python ,python-2.4 - #:use-setuptools? #f - #:tests? #f)) ; no tests - (native-inputs - `(("unzip" ,unzip))) - (home-page "https://sourceforge.net/projects/pyxlwriter/") - (synopsis "Python library for generating Excel compatible spreadsheets") - (description "PyXLWriter is a Python library for generating Excel compatible -spreadsheets. It's a port of John McNamara's Perl @code{Spreadsheet::WriteExcel} -module version 1.01 to Python. It allows writing of Excel compatible -spreadsheets without the need for COM objects.") - (license license:lgpl2.1+))) - (define-public python24-pil (package (inherit python2-pil1) @@ -219,7 +172,7 @@ spreadsheets without the need for COM objects.") (origin (method url-fetch) (uri (string-append - "http://www.parallelpython.com/downloads/pp/pp-" version ".zip")) + "https://www.parallelpython.com/downloads/pp/pp-" version ".zip")) (sha256 (base32 "0qkxcyclz3vgwpl6xvsrg76q59dj0wwy8qx15567bafv659ypyb1")))) @@ -230,7 +183,7 @@ spreadsheets without the need for COM objects.") #:tests? #f)) ; no tests (native-inputs `(("unzip" ,unzip))) - (home-page "http://www.parallelpython.com") + (home-page "https://www.parallelpython.com/") (synopsis "Parallel and distributed programming for Python") (description "PP is a python module which provides mechanism for parallel execution of python code on SMP (systems with multiple processors or cores) and @@ -435,3 +388,60 @@ clusters (computers connected via network).") (synopsis "") (description "") (license license:bsd-3))) + +(define-public python24-mysqlclient + (package + (name "python24-mysqlclient") + (version "1.2.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/PyMySQL/mysqlclient-python") + (commit "MySQLdb-1.2.5"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "193h09afkmz9nw2jlwfdikx1xj9sybswd2705k8jy48h1ks6fnbj")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2.4 + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'dont-create-release-file + (lambda _ + (substitute* "setup_common.py" + (("MySQLdb/release.py") + (string-append (getcwd) "/release.py"))) + #t)) + (add-before 'check 'pre-check + (lambda _ + (call-with-output-file "/tmp/my.cnf" + (lambda (p) + (format p + "[mysqld]~@ + datadir=/tmp~@ + socket=/tmp/mysql.sock~%"))) + (system* "mysqld" "--defaults-file=/tmp/my.cnf" "--bootstrap") + ;(invoke "mysql" "-S" "/tmp/mysql.sock" + ; "-e" "'create database mysqldb_test charset utf8;'") + #t))) + #:tests? #f)) ; TODO: Run the test suite + (native-inputs + `(("mariadb" ,mariadb "dev") + ("mariadb:bin" ,mariadb) + ("python-nose" ,python24-nose) + ("python-setuptools" ,python24-setuptools))) + (inputs + `(("zlib" ,zlib))) + (home-page "http://mysql-python.sourceforge.net/") + (synopsis "Python interface to MySQL") + (description "MySQLdb is an interface to the popular MySQL database server +for Python. The design goals are: +@itemize +@item with Python database API version 2.0 +@item Thread-safety +@item Thread-friendliness (threads will not block each other) +@item Compatibility with MySQL-3.23 and later +@end itemize") + (license license:gpl2+))) |