From cf5bec98aeb34e133a49c35e328984e60d548887 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Fri, 31 Oct 2025 08:48:30 +0100 Subject: [PATCH] gnu: Add python-filelock-bootstrap. * gnu/packages/python-build.scm (python-filelock-bootstrap): New variable. * gnu/packages/python-xyz.scm (python-filelock): Inherit from python-filelock-bootstrap. Change-Id: I0a0ff8246bcdccd384fe36119fd1125b53e0f670 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-build.scm | 26 ++++++++++++++++++++++++++ gnu/packages/python-xyz.scm | 2 ++ 2 files changed, 28 insertions(+) diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index b43ae4f078..7276e78118 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm @@ -1074,6 +1074,32 @@ compatible build front-ends to build Poetry managed projects.") (define-deprecated/public-alias python-poetry-core-next python-poetry-core) ;may be removed after 2025-12-01 +(define-public python-filelock-bootstrap + ;; Try to update simultaneously with the standard version in + ;; (gnu packages python-build). + (package + (name "python-filelock-bootstrap") + (version "3.16.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "filelock" version)) + (sha256 + (base32 + "0d8ljvmsfgriiqf5dqii91gfcpj7cpjrh8fnsvifaiyvspygnjf2")))) + (build-system pyproject-build-system) + (arguments (list #:tests? #f)) ; avoid extra dependencies. + (native-inputs + (list python-hatch-vcs-bootstrap + python-hatchling + python-setuptools-scm-bootstrap)) + (home-page "https://github.com/tox-dev/py-filelock") + (synopsis "Platform independent file lock") + (description "@code{filelock} contains a single module implementing +a platform independent file lock in Python, which provides a simple way of +inter-process communication.") + (license license:unlicense))) + ;;; This package exists to bootstrap python-tomli. (define-public python-flit-core-bootstrap (package diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index e116a3bba4..2b2ce9423f 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -5888,6 +5888,8 @@ Python's built-in @code{re} module with compatible interfaces.") (license license:bsd-3))) (define-public python-filelock + ;; Try to update simultaneously with the bootstrap version in + ;; (gnu packages python-build). (package (name "python-filelock") (version "3.16.1")