@@ -1978,15 +1978,47 @@ (define-public python-fb-re2
(define-public python-filelock
(package
(name "python-filelock")
- (version "3.0.12")
+ (version "3.8.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "filelock" version))
(sha256
(base32
- "0ngzlvb5j8gqs2nxlp2b0jhzii792h66wsn694qm8kqixr225n0q"))))
+ "1p2f1il288abcrjx002w25dzl9jd1392cfminv2rh8bgcsm7qi2m"))))
(build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'compatibility-fixes
+ (lambda _
+ ;; We have an outdated version of setuptools-scm
+ (substitute* "pyproject.toml" (("7.0.5") "6.3.2"))))
+ (replace 'build
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
+ ;; ZIP does not support timestamps before 1980.
+ (setenv "SOURCE_DATE_EPOCH" "315532800")
+ (invoke "python"
+ "-m"
+ "build"
+ "--wheel"
+ "--no-isolation"
+ ".")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((whl (car (find-files "dist" "\\.whl$"))))
+ (invoke "pip"
+ "--no-cache-dir"
+ "--no-input"
+ "install"
+ "--no-deps"
+ "--prefix"
+ #$output
+ whl))))
+ (delete 'check)))) ; pytest causes a circular dependency (?)
+ (native-inputs (list python-pypa-build python-setuptools python-setuptools-scm))
(home-page
"https://github.com/benediktschmitt/py-filelock")
(synopsis "Platform independent file lock")