1 { lib, buildPythonPackage, fetchFromGitHub, six, lark, pytestCheckHook }:
3 buildPythonPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-dPnIcv7TIeyG7rU938w7FrDklmaGuPpXz34uw/JjOgY=";
15 substituteInPlace setup.py \
16 --replace "lark-parser>=0.7.1,<0.8.0" "lark"
18 # NixOS is missing test.test_json module
19 rm -r commentjson/tests/test_json
22 propagatedBuildInputs = [ lark six ];
24 checkInputs = [ pytestCheckHook ];
26 pythonImportsCheck = [ "commentjson" ];
29 description = "Add JavaScript or Python style comments in JSON";
30 homepage = "https://github.com/vaidik/commentjson/";
31 license = licenses.mit;
32 maintainers = with maintainers; [ SuperSandro2000 ];