[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
25/45: gnu: python-pyls-black: Update to 0.4.7.
From: |
guix-commits |
Subject: |
25/45: gnu: python-pyls-black: Update to 0.4.7. |
Date: |
Wed, 12 Jan 2022 17:58:42 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit da5d0b10c4994cc4a4b3a74033111bb22cd8ebe5
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Jan 12 18:17:14 2022 +0100
gnu: python-pyls-black: Update to 0.4.7.
...and add support for PYTHON-LSP-SERVER while at it.
* gnu/packages/python-xyz.scm (python-pyls-black): Update to 0.4.7.
[source](modules, snippet): New fields.
[propagated-inputs]: Remove PYTHON-TOML. Add PYTHON-TOMLI.
---
gnu/packages/python-xyz.scm | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e212ae1557..912f7c6594 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1405,7 +1405,7 @@ approximate nearest neighbor search with Python
bindings.")
(define-public python-pyls-black
(package
(name "python-pyls-black")
- (version "0.4.6")
+ (version "0.4.7")
(source
(origin
;; There are no tests in the PyPI tarball.
@@ -1415,12 +1415,27 @@ approximate nearest neighbor search with Python
bindings.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0cjf0mjn156qp0x6md6mncs31hdpzfim769c2lixaczhyzwywqnj"))))
+ (base32 "0bkhfnlik89j3yamr20br4wm8975f20v33wabi2nyxvj10whr5dj"))
+ ;; Patch to work with python-lsp-server. Taken from
+ ;; <https://github.com/rupert/pyls-black/pull/37>.
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (substitute* "setup.cfg"
+ (("python-language-server")
+ "python-lsp-server"))
+ (substitute* '("pyls_black/plugin.py" "tests/test_plugin.py")
+ (("pyls_format_document")
+ "pylsp_format_document")
+ (("pyls_format_range")
+ "pylsp_format_range")
+ (("from pyls([ \\.])" _ char)
+ (string-append "from pylsp" char)))))))
(build-system python-build-system)
(arguments
`(#:test-target "pytest"))
(propagated-inputs
- (list python-black python-language-server python-toml))
+ (list python-black python-lsp-server python-tomli))
(native-inputs
(list python-flake8 python-isort python-mypy python-pytest
python-pytest-runner))
- 10/45: gnu: python-matrix-synapse-ldap3: Fix build., (continued)
- 10/45: gnu: python-matrix-synapse-ldap3: Fix build., guix-commits, 2022/01/12
- 21/45: gnu: python-platformdirs: Update to 2.4.1., guix-commits, 2022/01/12
- 19/45: gnu: python-typing-extensions: Update to 3.10.0.2., guix-commits, 2022/01/12
- 20/45: gnu: python-pathspec: Update to 0.9.0., guix-commits, 2022/01/12
- 01/45: gnu: Add cmark-gfm., guix-commits, 2022/01/12
- 15/45: gnu: python-modin: Permit newer versions of pandas., guix-commits, 2022/01/12
- 17/45: gnu: python-nbsphinx: Update to 0.8.8., guix-commits, 2022/01/12
- 22/45: gnu: python-isort: Update to 5.10.1., guix-commits, 2022/01/12
- 34/45: gnu: python-packaging: Add 21.3., guix-commits, 2022/01/12
- 33/45: gnu: python-oslo.config: Update to 8.7.1., guix-commits, 2022/01/12
- 25/45: gnu: python-pyls-black: Update to 0.4.7.,
guix-commits <=
- 35/45: gnu: python-oslo.utils: Update to 4.12.0., guix-commits, 2022/01/12
- 32/45: gnu: python-sphinx-gallery: Update to 0.10.1., guix-commits, 2022/01/12
- 37/45: gnu: python-oslo.log: Update to 4.6.1., guix-commits, 2022/01/12
- 38/45: gnu: python-scikit-fuzzy: Disable tests., guix-commits, 2022/01/12
- 39/45: gnu: python-sqlalchemy-utils: Update to 0.38.2., guix-commits, 2022/01/12
- 40/45: gnu: python-websocket-client: Update to 1.2.3., guix-commits, 2022/01/12
- 42/45: gnu: python-dyniterpy: Add missing inputs., guix-commits, 2022/01/12
- 45/45: gnu: python-texttable: Update to 1.6.4., guix-commits, 2022/01/12
- 44/45: gnu: python-flask-restx: Update to 0.5.1., guix-commits, 2022/01/12
- 43/45: gnu: python-duniterpy: Simplify inputs., guix-commits, 2022/01/12