From 7c8d450d85e2c7f334d91acec44667638efb6de7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 28 Sep 2025 23:57:39 +0100 Subject: [PATCH] gnu: python-autopep8: Move to python-check. * gnu/packages/python-xyz.scm (python-autopep8): Move from here ... * gnu/packages/python-check.scm: ... to here. Change-Id: Icce2a85151398eae4be5c54982497897751a43b7 --- gnu/packages/python-check.scm | 36 ++++++++++++++++++++++++++++++++++- gnu/packages/python-xyz.scm | 33 -------------------------------- 2 files changed, 35 insertions(+), 34 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index c6f52eb843..e40b92f508 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1,9 +1,11 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015 Cyril Roelandt +;;; Copyright © 2015, 2017 Cyril Roelandt ;;; Copyright © 2015, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2016-2022 Marius Bakke ;;; Copyright © 2016 宋文武 ;;; Copyright © 2017 Muriithi Frederick Muriuki +;;; Copyright © 2017 Thomas Danckaert +;;; Copyright © 2018 Fis Trivial ;;; Copyright © 2018-2020 Tobias Geerinckx-Rice ;;; Copyright © 2019-2025 Ricardo Wurmus ;;; Copyright © 2019-2024 Maxim Cournoyer @@ -228,6 +230,38 @@ the implementation of that name.") (license (list license:asl2.0 license:lgpl3)))) ; only for setup_helpers.py +(define-public python-autopep8 + (package + (name "python-autopep8") + (version "2.3.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "autopep8" version)) + (sha256 + (base32 "0n0pjdk39n6vlddjqvbpkxd4a7q33dkf0k2yk6dbd5wijr7hli49")))) + (build-system pyproject-build-system) + (propagated-inputs + (list python-pycodestyle python-tomli)) + (native-inputs + (list python-setuptools)) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'prepare-check + (lambda _ + (setenv "HOME" "/tmp")))))) + (home-page "https://github.com/hhatto/autopep8") + (synopsis "Format Python code according to the PEP 8 style guide") + (description + "@code{autopep8} automatically formats Python code to conform to +the PEP 8 style guide. It uses the pycodestyle utility to determine +what parts of the code needs to be formatted. @code{autopep8} is +capable of fixing most of the formatting issues that can be reported +by pycodestyle.") + (license (license:non-copyleft + "https://github.com/hhatto/autopep8/blob/master/LICENSE")))) + (define-public python-avocado-framework (package (name "python-avocado-framework") diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 30159d1d4d..238b0dc1fb 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -12291,39 +12291,6 @@ run simple @code{argparse} parsers from function signatures.") from a program in a @dfn{pager} such as @command{less}.") (license license:asl2.0))) -(define-public python-autopep8 - (package - (name "python-autopep8") - (version "2.3.2") - (source - (origin - (method url-fetch) - (uri (pypi-uri "autopep8" version)) - (sha256 - (base32 - "0n0pjdk39n6vlddjqvbpkxd4a7q33dkf0k2yk6dbd5wijr7hli49")))) - (build-system pyproject-build-system) - (propagated-inputs - (list python-pycodestyle python-tomli)) - (native-inputs - (list python-setuptools)) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'check 'prepare-check - (lambda _ - (setenv "HOME" "/tmp")))))) - (home-page "https://github.com/hhatto/autopep8") - (synopsis "Format Python code according to the PEP 8 style guide") - (description - "@code{autopep8} automatically formats Python code to conform to -the PEP 8 style guide. It uses the pycodestyle utility to determine -what parts of the code needs to be formatted. @code{autopep8} is -capable of fixing most of the formatting issues that can be reported -by pycodestyle.") - (license (license:non-copyleft - "https://github.com/hhatto/autopep8/blob/master/LICENSE")))) - (define-public python-dirty-equals (package (name "python-dirty-equals")