~ruther/guix-local

2078e378d2de3aa02fbca093d1bfa8aa8bd9514e — Nicolas Graves 3 months ago c1ea572
gnu: python-sphinx-theme-builder: Switch to pyproject.

* gnu/packages/sphinx.scm (python-sphinx-theme-builder):
[build-system]: Switch to pyproject-build-system.
[arguments]: Drop them.

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

M gnu/packages/sphinx.scm
M gnu/packages/sphinx.scm => gnu/packages/sphinx.scm +3 -23
@@ 1469,34 1469,14 @@ automated way to document command-line programs.  It scans
    (version "0.2.0b1")
    (source
     (origin
       (method git-fetch)               ;no tests in pypi archive
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/pradyunsg/sphinx-theme-builder")
             (commit version)))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "15gvwzd4l3wcmd6fns8xvv44yzxmamr1nfn28mp12sdw2y10v2ba"))))
    (build-system python-build-system)
    (arguments
     (list
      #:phases
      #~(modify-phases %standard-phases
          ;; XXX: PEP 517 manual build copied from python-isort.
          (replace 'build
            (lambda _
              ;; ZIP does not support timestamps before 1980.
              (setenv "SOURCE_DATE_EPOCH" "315532800")
              (invoke "python" "-m" "build" "--wheel" "--no-isolation" ".")))
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
              (when tests?
                (invoke "pytest" "-vv"))))
          (replace 'install
            (lambda _
              (let ((whl (car (find-files "dist" "\\.whl$"))))
                (invoke "pip" "--no-cache-dir" "--no-input"
                        "install" "--no-deps" "--prefix" #$output whl)))))))
        (base32 "15gvwzd4l3wcmd6fns8xvv44yzxmamr1nfn28mp12sdw2y10v2ba"))))
    (build-system pyproject-build-system)
    (native-inputs (list python-flit-core python-pytest))
    (propagated-inputs
     (list python-pypa-build