From 214b619bf091e580e0dec2bf920ca0709de87717 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Thu, 24 Jul 2025 21:13:14 +0200 Subject: [PATCH] gnu: python-editorconfig: Update to 0.17.1. * gnu/packages/python-xyz.scm (python-editorconfig): Update to 0.17.1. [source]: Switch to git-fetch. [arguments]<#:phases>: Replace 'check phase. [native-inputs]: Add cmake. Change-Id: I6611b18d8858bd5d9e6220b35ae63799094319e4 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-xyz.scm | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index efca4f8c4bfea73618b3086c4efb050112e0f261..d99fec833245c00e8a2477f6b16c4f41d0ab3306 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5242,16 +5242,28 @@ messages in color.") (define-public python-editorconfig (package (name "python-editorconfig") - (version "0.12.2") + (version "0.17.1") (source (origin - (method url-fetch) - (uri (pypi-uri "EditorConfig" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/editorconfig/editorconfig-core-py") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) (sha256 - (base32 - "0v55z351p9qkyp3bbspwywwn28sbcknhirngjbj779n3z52z63hv")))) + (base32 "107lh5pds1iwgb2q1da2k7g5vs6w0rk84679k6yi8a01agc1c0fz")))) (build-system pyproject-build-system) - (native-inputs (list python-setuptools python-wheel)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda _ + (setenv "PYTHONPATH" (getenv "GUIX_PYTHONPATH")) + (invoke "cmake" ".") + (invoke "ctest" ".")))))) + (native-inputs (list cmake python-setuptools python-wheel)) (home-page "https://editorconfig.org/") (synopsis "EditorConfig bindings for python") (description "The EditorConfig project consists of a file format for