2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vpk";
|
2022-01-03 16:56:52 +00:00
|
|
|
version = "1.4.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValvePython";
|
|
|
|
repo = "vpk";
|
|
|
|
rev = "v${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
hash = "sha256-SPkPb8kveAR2cN9kd2plS+TjmBYBCfa6pJ0c22l69M0=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library for working with Valve Pak files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "vpk";
|
2021-12-19 01:06:50 +00:00
|
|
|
homepage = "https://github.com/ValvePython/vpk";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ joshuafern ];
|
|
|
|
};
|
|
|
|
}
|