python310Packages.versioningit: move patching to postPatch

This commit is contained in:
Sandro 2022-10-04 15:06:21 +02:00 committed by GitHub
parent 2034a3da5a
commit 453efa3153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,13 @@ buildPythonPackage rec {
hash = "sha256-gJfiYNm99nZYW9gTO/e1//rDeox2KWJVtC2Gy1EqsuM=";
};
postPatch = ''
substituteInPlace tox.ini \
--replace "--cov=versioningit" "" \
--replace "--cov-config=tox.ini" "" \
--replace "--no-cov-on-fail" ""
'';
propagatedBuildInputs = [
packaging
setuptools
@ -47,13 +54,6 @@ buildPythonPackage rec {
"test_editable_mode"
];
preCheck = ''
substituteInPlace tox.ini \
--replace "--cov=versioningit" "" \
--replace "--cov-config=tox.ini" "" \
--replace "--no-cov-on-fail" ""
'';
pythonImportsCheck = [
"versioningit"
];