Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 35 lines 792 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "json5"; 11 version = "0.13.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "dpranke"; 16 repo = "pyjson5"; 17 tag = "v${version}"; 18 hash = "sha256-KL5YsWSHS8xI+lQB+ZtdEKUHGKICOduZsBd51z4jItw="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "json5" ]; 26 27 meta = { 28 description = "Python implementation of the JSON5 data format"; 29 homepage = "https://github.com/dpranke/pyjson5"; 30 changelog = "https://github.com/dpranke/pyjson5/releases/tag/${src.tag}"; 31 license = lib.licenses.asl20; 32 maintainers = with lib.maintainers; [ veehaitch ]; 33 mainProgram = "pyjson5"; 34 }; 35}