2019-07-13 03:12:23 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, 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";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|