summary refs log tree commit diff
path: root/pkgs/development/python-modules/vdf/default.nix
blob: 73725c8e5e301bbf3a915c34f261ae66ae8d7693 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, buildPythonPackage, fetchFromGitHub
, pytest, pytestcov, mock }:

buildPythonPackage rec {
  pname = "vdf";
  version = "3.2";

  src = fetchFromGitHub {
    owner = "ValvePython";
    repo = pname;
    rev = "v${version}";
    sha256 = "08rb982hcwc9pr9gl0zfk9266h84fwbz097qjfkss3srwghr1247";
  };

  checkInputs = [ pytest pytestcov mock ];
  checkPhase = "make test";

  meta = with stdenv.lib; {
    description = "Library for working with Valve's VDF text format";
    homepage = "https://github.com/ValvePython/vdf";
    license = licenses.mit;
    maintainers = with maintainers; [ metadark ];
  };
}