From 72c69bfe47d0bbc55c11e5cbe51e0fc39cfd44da Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sat, 18 Oct 2025 15:18:14 +0200 Subject: [PATCH] gnu: python-flake8-blind-except: Switch to pyproject. * gnu/packages/python-xyz.scm (python-flake8-blind-except): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [native-inputs]: Add python-setuptools. Remove python-pycodestyle. [propagated-inputs]: Add python-pycodestyle. Change-Id: I5c07bedc5dc9efe4632ea3e270b648ca583d623b Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index f7a7dcefe8237fd4533493957e6569012db01c97..585682278120b3dfdb7a00e50c6d0e3f4db9b570 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16449,18 +16449,22 @@ complexity of Python source code.") (version "0.2.1") (source (origin - (method url-fetch) - (uri (pypi-uri "flake8-blind-except" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/elijahandrews/flake8-blind-except") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 - (base32 "05nxsxfzfhwsm8gys90228imm2qbnqnw5y8bfqyfngnbkmd5fnpj")))) - (build-system python-build-system) - (arguments - `(#:tests? #f)) ; no tests - (native-inputs (list python-pycodestyle)) + (base32 "09zrfrm0896miysrpb7fhxzqjn6pm8y0b638nncswm2wvw9by72q")))) + (build-system pyproject-build-system) + (arguments (list #:tests? #f)) ;no tests + (native-inputs (list python-setuptools)) + (propagated-inputs (list python-pycodestyle)) (home-page "https://github.com/elijahandrews/flake8-blind-except") (synopsis "Check for blind @code{except:} statements") - (description "This package provides a flake8 extension that checks for -blind @code{except:} statements.") + (description + "This package provides a flake8 extension that checks for blind +@code{except:} statements.") (license license:expat))) (define-public python-flake8-bugbear