~ruther/guix-local

bede97b1716d709dda9f4ef0ab84fe3375755e67 — Sharlatan Hellseher 7 months ago 4e8daba
gnu: python-deprecation: Switch to pyproject.

* gnu/packages/python-xyz.scm (python-deprecation)[build-system]: Switch
to pyproject-build-system.
[arguments] <test-backend>: Use 'unittest.
<phases>: Add 'drop-unittest2.
[native-inputs]: Remove python-unittest2; add python-setuptools.

Change-Id: Ibe9bf3c94ca1137c64f6415d6f0b94e999c03cc5
1 files changed, 14 insertions(+), 3 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +14 -3
@@ 20748,11 20748,22 @@ code.")
       (sha256
        (base32
         "1zqqjlgmhgkpzg9ss5ki8wamxl83xn51fs6gn2a8cxsx9vkbvcvj"))))
    (build-system python-build-system)
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'unittest
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'drop-unittest2
            ;; See: <https://github.com/briancurtin/deprecation/issues/54>.
            (lambda _
              (substitute* "tests/test_deprecation.py"
                (("import unittest2")
                 "import unittest as unittest2")))))))
    (native-inputs
     (list python-setuptools))
    (propagated-inputs
     (list python-packaging))
    (native-inputs
     (list python-unittest2))
    (home-page "https://deprecation.readthedocs.io/")
    (synopsis "Python library to handle automated deprecations")
    (description