diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-05 21:58:53 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:07 +0100 |
| commit | bede97b1716d709dda9f4ef0ab84fe3375755e67 (patch) | |
| tree | 32a20b1fcc2e900ffb56077494e5a20d82232e79 /gnu/packages/python-xyz.scm | |
| parent | 4e8daba8372d0b00c294f085039361df3f3e6547 (diff) | |
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6b78dc4efd..8eb542c3f0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -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 |
