1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 mock,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "vdf";
11 version = "3.4";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "ValvePython";
16 repo = pname;
17 rev = "v${version}";
18 hash = "sha256-6ozglzZZNKDtADkHwxX2Zsnkh6BE8WbcRcC9HkTTgPU=";
19 };
20
21 nativeCheckInputs = [
22 mock
23 pytestCheckHook
24 ];
25 pythonImportsCheck = [ "vdf" ];
26
27 meta = with lib; {
28 description = "Library for working with Valve's VDF text format";
29 homepage = "https://github.com/ValvePython/vdf";
30 license = licenses.mit;
31 maintainers = with maintainers; [ kira-bruneau ];
32 };
33}