mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
e27664274c
(cherry picked from commit 1c0e78c92b
)
43 lines
956 B
Nix
43 lines
956 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch2,
|
|
mock,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vdf";
|
|
version = "3.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ValvePython";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-6ozglzZZNKDtADkHwxX2Zsnkh6BE8WbcRcC9HkTTgPU=";
|
|
};
|
|
|
|
patches = [
|
|
# Support appinfo.vdf v29 (required by protontricks 1.12.0)
|
|
(fetchpatch2 {
|
|
url = "https://github.com/Matoking/vdf/commit/981cad270c2558aeb8eccaf42cfcf9fabbbed199.patch";
|
|
hash = "sha256-kLAbbB0WHjxq4rokLoGTPx43BU44EshteR59Ey9JnXo=";
|
|
})
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
pythonImportsCheck = [ "vdf" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library for working with Valve's VDF text format";
|
|
homepage = "https://github.com/ValvePython/vdf";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
|
};
|
|
}
|