summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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