mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python312Packages.pytest-harvest: drop useless pytest-runner, remove distutils usage
This commit is contained in:
parent
3bb5ba4b34
commit
fb9a787bc2
@ -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 ];
|
||||
|
Loading…
Reference in New Issue
Block a user