python3Packages.vpk: migrate to pyproject (#532018)
This commit is contained in:
@@ -2,23 +2,30 @@
|
|||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
setuptools,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage (finalAttrs: {
|
||||||
pname = "vpk";
|
pname = "vpk";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
|
__structuredAttrs = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ValvePython";
|
owner = "ValvePython";
|
||||||
repo = "vpk";
|
repo = "vpk";
|
||||||
rev = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-SPkPb8kveAR2cN9kd2plS+TjmBYBCfa6pJ0c22l69M0=";
|
hash = "sha256-SPkPb8kveAR2cN9kd2plS+TjmBYBCfa6pJ0c22l69M0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "vpk" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Library for working with Valve Pak files";
|
description = "Library for working with Valve Pak files";
|
||||||
mainProgram = "vpk";
|
mainProgram = "vpk";
|
||||||
@@ -26,4 +33,4 @@ buildPythonPackage rec {
|
|||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = [ ];
|
maintainers = [ ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user