10 buildPythonPackage rec {
11 pname = "commentjson";
13 format = "setuptools";
15 src = fetchFromGitHub {
19 hash = "sha256-dPnIcv7TIeyG7rU938w7FrDklmaGuPpXz34uw/JjOgY=";
23 substituteInPlace setup.py \
24 --replace "lark-parser>=0.7.1,<0.8.0" "lark"
26 # NixOS is missing test.test_json module
27 rm -r commentjson/tests/test_json
30 propagatedBuildInputs = [
35 nativeCheckInputs = [ pytestCheckHook ];
37 pythonImportsCheck = [ "commentjson" ];
40 description = "Add JavaScript or Python style comments in JSON";
41 homepage = "https://github.com/vaidik/commentjson/";
42 license = licenses.mit;