summary refs log tree commit diff
path: root/pkgs/development/python-modules/vdf/default.nix
blob: 9e4e92d21ae79e418e65f57e6a09b397d96478e6 (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
{ lib, stdenv, buildPythonPackage, fetchFromGitHub
, pytest, pytestcov, mock }:

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

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

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

  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; [ metadark ];
  };
}