charmcraft: use setuptools.dist rather than distutils.util

This commit is contained in:
Jon Seager
2024-07-10 16:43:51 +02:00
parent 880e9225b6
commit 438d5c64ee
+4
View File
@@ -22,6 +22,9 @@ python3Packages.buildPythonApplication rec {
postPatch = ''
substituteInPlace setup.py \
--replace-fail 'version=determine_version()' 'version="${version}"'
substituteInPlace charmcraft/env.py \
--replace-fail "distutils.util" "setuptools.dist"
'';
propagatedBuildInputs = with python3Packages; [
@@ -59,6 +62,7 @@ python3Packages.buildPythonApplication rec {
pytest-subprocess
pytestCheckHook
responses
setuptools
] ++ [ git ];
preCheck = ''