1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8buildPythonPackage rec { 9 pname = "condense-json"; 10 version = "0.1.3"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "simonw"; 15 repo = "condense-json"; 16 tag = version; 17 hash = "sha256-vMh6GLWqae0Ave3FmrGQuVCgFzYMGCIe76mGNDMrBdU="; 18 }; 19 20 build-system = [ 21 setuptools 22 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ "condense_json" ]; 29 30 meta = { 31 description = "Python function for condensing JSON using replacement strings"; 32 homepage = "https://github.com/simonw/condense-json"; 33 changelog = "https://github.com/simonw/condense-json/releases/tag/${src.tag}"; 34 license = lib.licenses.asl20; 35 maintainers = with lib.maintainers; [ josh ]; 36 }; 37}