2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub
|
2019-07-13 03:12:23 +01:00
|
|
|
, pytest, pytestcov, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "vdf";
|
2020-04-27 03:35:25 +01:00
|
|
|
version = "3.3";
|
2019-07-13 03:12:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValvePython";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-27 03:35:25 +01:00
|
|
|
sha256 = "0d9bhxdznry7kzyma00cxwjn6rqnd6vw8v5ym68k6qswgfzb569i";
|
2019-07-13 03:12:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestcov mock ];
|
|
|
|
checkPhase = "make test";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-13 03:12:23 +01:00
|
|
|
description = "Library for working with Valve's VDF text format";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ValvePython/vdf";
|
2019-07-13 03:12:23 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ metadark ];
|
|
|
|
};
|
|
|
|
}
|