1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "jstyleson"; 9 version = "0.0.2"; 10 11 src = fetchFromGitHub { 12 owner = "linjackson78"; 13 repo = "jstyleson"; 14 # https://github.com/linjackson78/jstyleson/issues/6 15 rev = "544b9fdb43339cdd15dd03dc69a6d0f36dd73241"; 16 hash = "sha256-s/0DDfy+07TuUNjHPqKRT3xMMQl6spZCacB7Dweof7A="; 17 }; 18 19 nativeCheckInputs = [ 20 pytestCheckHook 21 ]; 22 23 pythonImportsCheck = [ "jstyleson" ]; 24 25 meta = with lib; { 26 description = "A python library to parse JSON with js-style comments"; 27 homepage = "https://github.com/linjackson78/jstyleson"; 28 license = licenses.mit; 29 maintainers = with maintainers; [ ambroisie ]; 30 }; 31}