python3Packages.vdf: migrate to pyproject (#542880)

This commit is contained in:
Nick Cao
2026-07-17 15:20:45 +00:00
committed by GitHub
@@ -3,20 +3,23 @@
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
setuptools,
mock,
pytestCheckHook,
nix-update-script,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "vdf";
version = "3.4";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ValvePython";
repo = "vdf";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-6ozglzZZNKDtADkHwxX2Zsnkh6BE8WbcRcC9HkTTgPU=";
};
@@ -28,6 +31,8 @@ buildPythonPackage rec {
})
];
build-system = [ setuptools ];
nativeCheckInputs = [
mock
pytestCheckHook
@@ -45,4 +50,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kira-bruneau ];
};
}
})