python3Packages.vpk: modernize

This commit is contained in:
Harinn
2026-06-15 22:26:48 +07:00
parent 42b9f35615
commit 2f7d4981bc
@@ -6,15 +6,17 @@
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "vpk";
version = "1.4.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "ValvePython";
repo = "vpk";
rev = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-SPkPb8kveAR2cN9kd2plS+TjmBYBCfa6pJ0c22l69M0=";
};
@@ -22,6 +24,8 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "vpk" ];
meta = {
description = "Library for working with Valve Pak files";
mainProgram = "vpk";
@@ -29,4 +33,4 @@ buildPythonPackage rec {
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ joshuafern ];
};
}
})