1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "vpk";
10 version = "1.4.0";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "ValvePython";
15 repo = "vpk";
16 rev = "v${version}";
17 hash = "sha256-SPkPb8kveAR2cN9kd2plS+TjmBYBCfa6pJ0c22l69M0=";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 meta = with lib; {
23 description = "Library for working with Valve Pak files";
24 mainProgram = "vpk";
25 homepage = "https://github.com/ValvePython/vpk";
26 license = licenses.mit;
27 maintainers = with maintainers; [ joshuafern ];
28 };
29}