~ruther/guix-local

405ec135a9bd47bdadb01ce84228d2ed7e3c7c32 — Nicolas Graves 5 months ago b627593
gnu: Add python-approval-utilities.

* gnu/packages/python-check.scm (python-approval-utilities): New variable.

Change-Id: Ia725b06185f0a57a8ddb8a40d2ab19125c970a8e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 36 insertions(+), 0 deletions(-)

M gnu/packages/python-check.scm
M gnu/packages/python-check.scm => gnu/packages/python-check.scm +36 -0
@@ 155,6 155,42 @@ reducing a number of combinations of variables into a lesser set that covers
most situations.")
    (license license:expat)))

(define-public python-approval-utilities
  (package
    (name "python-approval-utilities")
    (version "15.3.2")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
              (url "https://github.com/approvals/ApprovalTests.Python")
              (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0mkvrx252xc140n4rrvgbqc1hrlw1gq7nx5hr1z4rxkaxvr8prkh"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:tests? #f  ; Tests are run in the python-approvaltests package.
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'setup
            (lambda _
              (rename-file "setup/setup.approval_utilities.py"
                           "setup.py")
              (substitute* "setup.py"
                (("from setup_utils import get_version")
                 "")
                (("version=get_version\\(\\),")
                 (format #f "version=~s," #$version))))))))
    (native-inputs (list python-setuptools))
    (home-page "https://github.com/approvals/ApprovalTests.Python")
    (synopsis "Utilities for @code{python-approvaltests}")
    (description
     "This package provides utilities for production code that work well with
@code{python-approvaltests}.")
    (license license:asl2.0)))

(define-public python-assay
  ;; No release yet.
  (let ((commit "74617d70e77afa09f58b3169cf496679ac5d5621")