~ruther/guix-local

9966826c854b7dea520e04c31dab68026e01f24e — Ricardo Wurmus 1 year, 2 months ago e253d60
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
1 files changed, 22 insertions(+), 4 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +22 -4
@@ 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