gnu: Add python-gitignore-parser.

* gnu/packages/python-xyz.scm (python-gitignore-parser): New variable.

Change-Id: Ifd6cc0581940d6868dbfff144e8db5987af823d4
This commit is contained in:
jgart 2025-06-12 13:45:36 -05:00
parent 8de57226fa
commit 9b44978443
No known key found for this signature in database
GPG key ID: A52AA2B477B6DD35

View file

@ -100,7 +100,7 @@
;;; Copyright © 2021 LibreMiami <packaging-guix@libremiami.org>
;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021, 2023-2024 jgart <jgart@dismail.de>
;;; Copyright © 2021, 2023-2025 jgart <jgart@dismail.de>
;;; Copyright © 2021 Danial Behzadi <dani.behzi@ubuntu.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
@ -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")