From 1a52206e6027c7d791edc2d8eac7475c48aec266 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 24 Mar 2018 23:44:15 +0100 Subject: gnu: python-ly: Use PYPI-URI. * gnu/packages/python.scm (python-ly)[source]: Use PYPI-URI. --- gnu/packages/python.scm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3811233272..cda0b50117 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5797,9 +5797,7 @@ from an XML-based format.") (source (origin (method url-fetch) - (uri (string-append "https://pypi.python.org/packages/57/4f/" - "889579244947368f28eda66b782331b1e75f83fd72e63f9ece93cd7a18f9" - "/python-ly-" version ".tar.gz")) + (uri (pypi-uri name version)) (sha256 (base32 "0x98dv7p8mg26p4816yy8hz4f34zf6hpnnfmr56msgh9jnsm2qfl")))) -- cgit v1.3 From 883fa31088544e27ee79f300adf415f917e48058 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 24 Mar 2018 20:35:33 +0100 Subject: gnu: python-pyld: Update to 1.0.3. * gnu/packages/python.scm (python-pyld): Update to 1.0.3. [arguments]: Run the new test suite. --- gnu/packages/python.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index cda0b50117..148cfb8bcd 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1767,15 +1767,14 @@ files.") (define-public python-pyld (package (name "python-pyld") - (version "0.7.1") + (version "1.0.3") (source (origin (method url-fetch) (uri (pypi-uri "PyLD" version)) (sha256 (base32 - "1m0fs6897vxfkf7awah5i66i7b7smm5fnywf1w50fpzyfbfhr156")))) + "12i2g6xdj30k7xxcibg3sc5y76snwq8l6n8fy9lyi577kgy0h2pm")))) (build-system python-build-system) - (arguments `(#:tests? #f)) ; no tests (home-page "https://github.com/digitalbazaar/pyld") (synopsis "Python implementation of the JSON-LD specification") (description -- cgit v1.3 From 9c3f2c2e83e0970173fbbf77f699e2c325046daa Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 29 Mar 2018 13:39:40 +0200 Subject: gnu: Add python-debug. Suggested by Pjotr Prins . * gnu/packages/python.scm (python-debug): New variable. --- gnu/packages/python.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 148cfb8bcd..9e038ef4fb 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -401,6 +401,24 @@ data types.") ("openssl" ,openssl) ("zlib" ,zlib))))) +(define-public python-debug + (package + (inherit python) + (name "python-debug") + (outputs '("out" "debug")) + (build-system gnu-build-system) + (arguments + (substitute-keyword-arguments (package-arguments python) + ((#:configure-flags flags '()) + `(cons "--with-pydebug" ,flags)))) + (synopsis + "High-level, dynamically-typed programming language (for debugging)") + (description + "This variant of Python provides an interpreter built with +@code{--with-pydebug} to help develop and debug extensions. See +@url{https://pythonextensionpatterns.readthedocs.io/en/latest/debugging/debug.html}, +for more information."))) + (define* (wrap-python3 python #:optional (name (string-append (package-name python) "-wrapper"))) -- cgit v1.3 From 95f3b626d7117571df9a9bd48dd5109213395215 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sat, 31 Mar 2018 23:19:12 +0200 Subject: gnu: Add python-empy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python.scm (python-empy): New variable. (python2-empy): Use 'package-with-python-2'. Signed-off-by: Ludovic Courtès --- gnu/packages/python.scm | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 9e038ef4fb..e6ae8f433b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -48,6 +48,7 @@ ;;; Copyright © 2018 Ethan R. Jones ;;; Copyright © 2018 Vijayalakshmi Vedantham +;;; Copyright © 2018 Mathieu Lirzin ;;; This file is part of GNU Guix. ;;; @@ -1304,9 +1305,9 @@ applications. dogtail scripts are written in Python and executed like any other Python program.") (license license:gpl2+))) -(define-public python2-empy +(define-public python-empy (package - (name "python2-empy") + (name "python-empy") (version "3.3") (source (origin (method url-fetch) @@ -1317,12 +1318,7 @@ other Python program.") "01g8mmkfnvjdmlhsihwyx56lrg7r5m5d2fg6mnxsvy6g0dnl69f6")))) (build-system python-build-system) (arguments - `(#:python ,python-2 - #:phases - (modify-phases %standard-phases - (replace 'check - (lambda _ - (zero? (system* "./test.sh"))))))) + `(#:tests? #f)) ;python2 only (home-page "http://www.alcyone.com/software/empy/") (synopsis "Templating system for Python") (description @@ -1339,6 +1335,9 @@ system is highly configurable via command line options and embedded commands.") (license license:lgpl2.1+))) +(define-public python2-empy + (package-with-python2 python-empy)) + (define-public python2-element-tree (package (name "python2-element-tree") -- cgit v1.3 From 0d0cf3b0f6fd0b24e13704aece9c53ca2e4dcca3 Mon Sep 17 00:00:00 2001 From: Tomáš Čech Date: Tue, 27 Mar 2018 20:32:16 +0200 Subject: python: python-py3status: Update to 3.7. * gnu/packages/python.scm (python-py3status): Update to 3.7. [arguments]: Adjust string substitution. --- gnu/packages/python.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index e6ae8f433b..3bb6e2b0b7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8616,14 +8616,14 @@ to occurrences in strings and comments.") (define-public python-py3status (package (name "python-py3status") - (version "3.1") + (version "3.7") (source (origin (method url-fetch) (uri (pypi-uri "py3status" version)) (sha256 (base32 - "0i283z1pivmir61z8kbiycigc94l61v33ygzkhczf1ifq7cppyds")))) + "0shxcfz4wcczj0mhwp4w0dvwd2fdd9bgprq8slim1519iiqzgwhq")))) (build-system python-build-system) (inputs `(("file" ,file))) @@ -8636,8 +8636,8 @@ to occurrences in strings and comments.") (lambda* (#:key inputs #:allow-other-keys) (let ((file-path (assoc-ref inputs "file"))) (substitute* "py3status/parse_config.py" - (("check_output\\(\\['file'") - (string-append "check_output(['" file-path "/bin/file'"))) + (("\\['file', '-b'") + (string-append "['" file-path "/bin/file', '-b'"))) #t)))) #:tests? #f)) ; TODO: Requires many libraries not in Guix. (home-page "https://github.com/ultrabug/py3status") -- cgit v1.3 From c2b2f0c86691f6d76f528b6366c866b8f3665c3c Mon Sep 17 00:00:00 2001 From: Adam Massmann Date: Wed, 4 Apr 2018 02:09:28 -0400 Subject: gnu: Add python-latexcodec * gnu/packages/python.scm (python-latexcodec): New variable. Signed-off-by: Eric Bavier --- gnu/packages/python.scm | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3bb6e2b0b7..8d15c9a214 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -49,7 +49,8 @@ ;;; Copyright © 2018 Fis Trivial ;;; Copyright © 2018 Vijayalakshmi Vedantham ;;; Copyright © 2018 Mathieu Lirzin - +;;; Copyright © 2018 Adam Massmann +;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it @@ -13081,3 +13082,22 @@ file system events on Linux.") (base32 "0svc9nla3b9145d6b7fb9dizx412l3difzqw0ilh9lz52nsixw8j")) (file-name (string-append name "-" version ".tar.gz")))))) + +(define-public python-latexcodec + (package + (name "python-latexcodec") + (version "1.0.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "latexcodec" version)) + (sha256 + (base32 + "0zdd1gf24i83ykadx0y30n3001j43scqr2saql3vckk5c39dj1wn")))) + (build-system python-build-system) + (inputs + `(("python-six" ,python-six))) + (home-page "https://readthedocs.org/projects/latexcodec/") + (synopsis "Work with LaTeX code in Python") + (description "Lexer and codec to work with LaTeX code in Python.") + (license license:expat))) -- cgit v1.3 From 2514fc1d69ec556c9c18d2463a892f43fa175557 Mon Sep 17 00:00:00 2001 From: Adam Massmann Date: Wed, 4 Apr 2018 02:10:32 -0400 Subject: gnu: Add python-pybtex * gnu/packages/python.scm (python-pybtex): New variable. Signed-off-by: Eric Bavier --- gnu/packages/python.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8d15c9a214..e5b74a57f7 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13101,3 +13101,29 @@ file system events on Linux.") (synopsis "Work with LaTeX code in Python") (description "Lexer and codec to work with LaTeX code in Python.") (license license:expat))) + +(define-public python-pybtex + (package + (name "python-pybtex") + (version "0.21") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pybtex" version)) + (sha256 + (base32 + "00300j8dn5pxq4ndxmfmbmycg2znawkqs49val2x6jlmfiy6r2mg")))) + (build-system python-build-system) + (native-inputs + `(("python-nose" ,python-nose))) + (inputs + `(("python-latexcodec" ,python-latexcodec) + ("python-pyyaml" ,python-pyyaml) + ("python-six" ,python-six))) + (arguments + `(#:test-target "nosetests")) + (home-page "https://pybtex.org/") + (synopsis "BibTeX-compatible bibliography processor") + (description "Pybtex is a BibTeX-compatible bibliography processor written +in Python. You can simply type pybtex instead of bibtex.") + (license license:expat))) -- cgit v1.3