diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-11-29 14:57:19 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2024-12-13 21:01:36 +0000 |
commit | a33c8eadd090c91011ea4fa78eed0ea7a6135a78 (patch) | |
tree | 1944f1351023dd9962972c5d5bfd64d3af06d9bb /gnu/packages/python-xyz.scm | |
parent | 372b1491a544871ae4b9c8f7d47123d51be8a876 (diff) | |
download | guix-a33c8eadd090c91011ea4fa78eed0ea7a6135a78.tar guix-a33c8eadd090c91011ea4fa78eed0ea7a6135a78.tar.gz |
gnu: python-pydocstyle: Update to 6.3.0.
* gnu/packages/python-xyz.scm (python-pydocstyle): Update to 6.3.0.
[source]: Swap to git checkout containing tests.
<patches>: Add patch published upstream to fix compatibility with PEP701.
[build-system]: Swap to pyrpoject-build-system.
[arguments]<test-flags>: Disable tests requiring pip install.
<phases>: Add 'set-version.
[native-inputs]: Add poetry-core, python-pytest, and python-tomli.
* gnu/packages/patches/python-pydocstyle-add-support-for-pep701.patch:
Add file.
* gnu/local.mk: Register patch.
Change-Id: Ia43906383ac454c3918d0c9335cb8f744443ad29
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9024137bed..5a138d18ee 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -8495,22 +8495,42 @@ in Markdown format. Instead of executing your Python code like so many other documentation tools, it parses it using docspec instead.") (license license:expat))) +;; XXX: The project is deprecated upstream, still in use by some packages, +;; consider to remove when nothing depends on it. (define-public python-pydocstyle (package (name "python-pydocstyle") - (version "3.0.0") + (version "6.3.0") (source (origin - (method url-fetch) - (uri (pypi-uri "pydocstyle" version)) + (method git-fetch) ;no tests in PyPI archive + (uri (git-reference + (url "https://github.com/PyCQA/pydocstyle") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 - "1m1xv9clkg9lgzyza6dnj359z04vh5g0h49nhzghv7lg81gchhap")))) - (build-system python-build-system) + (base32 "1aabvnxmy939y5b7jpnygpnkgbi4id9j461v7bwzxwdmdffnnd1j")) + (patches (search-patches + "python-pydocstyle-add-support-for-pep701.patch")))) + (build-system pyproject-build-system) + (arguments + (list + ;; It tries to install with pip. + #:test-flags #~(list "--ignore=src/tests/test_integration.py") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (substitute* "pyproject.toml" + (("0.0.0-dev") #$version))))))) + (native-inputs + (list python-poetry-core + python-pytest + python-tomli)) (propagated-inputs - (list python-six python-snowballstemmer)) - (home-page - "https://github.com/PyCQA/pydocstyle/") + (list python-six + python-snowballstemmer)) + (home-page "https://github.com/PyCQA/pydocstyle/") (synopsis "Python docstring style checker") (description "This package provides a style checker for the Python Language |