python312Packages.pytest-harvest: drop useless pytest-runner, remove distutils usage

This commit is contained in:
Sandro Jäckel 2024-07-21 16:14:04 +02:00
parent 3bb5ba4b34
commit fb9a787bc2
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -3,7 +3,6 @@
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
pytest-runner,
pytest,
decopatch,
makefun,
@ -34,11 +33,14 @@ buildPythonPackage rec {
# we disable this file creation as it touches internet
postPatch = ''
echo "version = '${version}'" > pytest_harvest/_version.py
substituteInPlace pytest_harvest/tests/test_lazy_and_harvest.py \
--replace-fail "from distutils.version import LooseVersion" "from packaging.version import parse" \
--replace-fail "LooseVersion" "parse"
'';
nativeBuildInputs = [
setuptools-scm
pytest-runner
];
buildInputs = [ pytest ];