python3Packages.virtualenv-clone: migrate to pyproject

This commit is contained in:
SkohTV
2026-05-25 16:33:43 -04:00
parent 7abdd6c20d
commit 44e4971df5
@@ -4,12 +4,13 @@
fetchFromGitHub,
virtualenv,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "virtualenv-clone";
version = "0.5.7";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "edwardgeorge";
@@ -18,6 +19,8 @@ buildPythonPackage rec {
hash = "sha256-qrN74IwLRqiVPxU8gVhdiM34yBmiS/5ot07uroYPDVw=";
};
build-system = [ setuptools ];
postPatch = ''
substituteInPlace tests/__init__.py \
--replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'" \
@@ -35,7 +38,7 @@ buildPythonPackage rec {
"pth = '$(mktemp -d)/test_fixup_pth_file.pth'"
'';
propagatedBuildInputs = [ virtualenv ];
dependencies = [ virtualenv ];
nativeCheckInputs = [ pytestCheckHook ];