summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2025-01-17 14:03:04 +0100
committerRicardo Wurmus <rekado@elephly.net>2025-01-20 21:38:02 +0100
commit9966826c854b7dea520e04c31dab68026e01f24e (patch)
treeefe1521adf63d8887e91465b1f9b33500b6cda69 /gnu
parente253d60eba33856d947bc10771923d8e0bffe0bc (diff)
gnu: python-pandas-vet: Update to 2023.8.2.
* gnu/packages/python-check.scm (python-pandas-vet): Update to 2023.8.2. [arguments]: Add phase 'set-version. [native-inputs]: Add python-hatchling and python-pytest-cov. Change-Id: I2b6352ba70b8862a1103983a0574ab4d635942ab
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python-check.scm26
1 files changed, 22 insertions, 4 deletions
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 033a32a464..eedbec89f9 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -2787,8 +2787,7 @@ Avocado machine readable outputs this one is streamlined (per test results).
(define-public python-pandas-vet
(package
(name "python-pandas-vet")
- ;; Newer versions require flake8>=6.0.0.
- (version "0.2.3")
+ (version "2023.8.2")
(source
(origin
;; No tests in the PyPI tarball.
@@ -2798,10 +2797,29 @@ Avocado machine readable outputs this one is streamlined (per test results).
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "1b3pqcargv68p2lpv72q49siq6mxfh3znxhz9vd91rp6fd6lf2cz"))))
+ (base32 "0vkc9sa8x6vfmnd24pxp3gjlmbwx926h4y5alkdbbpb9x5h5ml3j"))))
(build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-version
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("^source = \"regex_commit\"") "")
+ (("^tag_sign.*") "")
+ (("\\[tool.hatch.version\\]") "")
+ (("dynamic = \\[\"version\"\\]")
+ (string-append "version = \"" #$version "\"")))
+ (with-output-to-file "src/pandas_vet/__about__.py"
+ (let* ((version #$(package-version this-package) )
+ (version-tuple (string-join (string-split version #\.) ", ")))
+ (lambda ()
+ (format #t
+ "__version__ = version = '~a'
+__version_tuple__ = version_tuple = (~a)~%" version version-tuple)))))))))
(propagated-inputs (list python-attrs python-flake8))
- (native-inputs (list python-pytest))
+ (native-inputs (list python-hatchling python-pytest python-pytest-cov))
(home-page "https://github.com/deppen8/pandas-vet")
(synopsis "Opionated @code{flake8} plugin for @code{pandas} code")
(description