From 9b449784434ec799340b7154ce42a81a6dac3648 Mon Sep 17 00:00:00 2001 From: jgart Date: Thu, 12 Jun 2025 13:45:36 -0500 Subject: [PATCH] gnu: Add python-gitignore-parser. * gnu/packages/python-xyz.scm (python-gitignore-parser): New variable. Change-Id: Ifd6cc0581940d6868dbfff144e8db5987af823d4 --- gnu/packages/python-xyz.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 80b48a1d6b2df18f5bb9f0dbe3b498741fcbe538..ceda8eddc72c4b5913d4b4f8c2e03fc7764e0bb1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -100,7 +100,7 @@ ;;; Copyright © 2021 LibreMiami ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Raghav Gururajan -;;; Copyright © 2021, 2023-2024 jgart +;;; Copyright © 2021, 2023-2025 jgart ;;; Copyright © 2021 Danial Behzadi ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2021 Hugo Lecomte @@ -28839,6 +28839,36 @@ Its major feature is tracking the number of lines authored by each person for ev commit, but it also includes some other useful statistics.") (license license:asl2.0))) +(define-public python-gitignore-parser + (package + (name "python-gitignore-parser") + (version "0.1.12") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mherrmann/gitignore_parser") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "00s8vvslnlbqnmkgnmc374mjzbsw7b167gh7wf5ygigd79cpnnxk")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; Tests are missing in PyPI. + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "-m" "unittest"))))))) + (native-inputs (list python-setuptools python-wheel)) + (home-page "https://github.com/mherrmann/gitignore_parser") + (synopsis "Spec-compliant gitignore parser for Python") + (description + "This package provides a spec-compliant gitignore parser for Python.") + (license license:expat))) + (define-public python-fusepy (package (name "python-fusepy")