mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
4e8daba837
commit
bede97b171
1 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue