1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "jsonformatter"; 11 version = "0.3.4"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "MyColorfulDays"; 16 repo = "jsonformatter"; 17 tag = "v${version}"; 18 hash = "sha256-A+lsSBrm/64w7yMabmuAbRCLwUUdulGH3jB/DbYJ2QY="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "jsonformatter" ]; 26 27 meta = with lib; { 28 description = "Formatter to output JSON log, e.g. output LogStash needed log"; 29 homepage = "https://github.com/MyColorfulDays/jsonformatter"; 30 changelog = "https://github.com/MyColorfulDays/jsonformatter/releases/tag/v${version}"; 31 license = licenses.bsd2; 32 maintainers = with maintainers; [ gador ]; 33 }; 34}