Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildPythonPackage, 3 fetchFromGitHub, 4 lib, 5 pytestCheckHook, 6}: 7 8buildPythonPackage rec { 9 pname = "json5"; 10 version = "0.9.14"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "dpranke"; 15 repo = "pyjson5"; 16 rev = "v${version}"; 17 hash = "sha256-cshP1kraLENqWuQTlm4HPAP/0ywRRLFOJI8mteWcjR4="; 18 }; 19 20 nativeCheckInputs = [ pytestCheckHook ]; 21 22 pythonImportsCheck = [ "json5" ]; 23 24 meta = with lib; { 25 homepage = "https://github.com/dpranke/pyjson5"; 26 description = "Python implementation of the JSON5 data format"; 27 mainProgram = "pyjson5"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ veehaitch ]; 30 }; 31}