1{ stdenv, buildPythonPackage, fetchFromGitHub
2, pytest, pytestcov, mock }:
3
4buildPythonPackage rec {
5 pname = "vdf";
6 version = "3.3";
7
8 src = fetchFromGitHub {
9 owner = "ValvePython";
10 repo = pname;
11 rev = "v${version}";
12 sha256 = "0d9bhxdznry7kzyma00cxwjn6rqnd6vw8v5ym68k6qswgfzb569i";
13 };
14
15 checkInputs = [ pytest pytestcov mock ];
16 checkPhase = "make test";
17
18 meta = with stdenv.lib; {
19 description = "Library for working with Valve's VDF text format";
20 homepage = "https://github.com/ValvePython/vdf";
21 license = licenses.mit;
22 maintainers = with maintainers; [ metadark ];
23 };
24}