2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest, pytestcov, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vdf";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "3.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValvePython";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-05-03 17:38:23 +00:00
|
|
|
sha256 = "0d9bhxdznry7kzyma00cxwjn6rqnd6vw8v5ym68k6qswgfzb569i";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestcov mock ];
|
|
|
|
checkPhase = "make test";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for working with Valve's VDF text format";
|
|
|
|
homepage = "https://github.com/ValvePython/vdf";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ metadark ];
|
|
|
|
};
|
|
|
|
}
|