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
This commit is contained in:
Sharlatan Hellseher 2025-09-05 21:58:53 +01:00
parent 4e8daba837
commit bede97b171
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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