at master 764 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "json5"; 12 version = "0.12.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "dpranke"; 19 repo = "pyjson5"; 20 tag = "v${version}"; 21 hash = "sha256-xBErTbC/cw+1bAVPIyN0+0aPmWblNtnsbIKEZ+XIyUQ="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 pythonImportsCheck = [ "json5" ]; 29 30 meta = with lib; { 31 description = "Python implementation of the JSON5 data format"; 32 homepage = "https://github.com/dpranke/pyjson5"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ veehaitch ]; 35 mainProgram = "pyjson5"; 36 }; 37}