81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
34 lines
873 B
Nix
34 lines
873 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, six, lark, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "commentjson";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vaidik";
|
|
repo = "commentjson";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dPnIcv7TIeyG7rU938w7FrDklmaGuPpXz34uw/JjOgY=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "lark-parser>=0.7.1,<0.8.0" "lark"
|
|
|
|
# NixOS is missing test.test_json module
|
|
rm -r commentjson/tests/test_json
|
|
'';
|
|
|
|
propagatedBuildInputs = [ lark six ];
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "commentjson" ];
|
|
|
|
meta = with lib; {
|
|
description = "Add JavaScript or Python style comments in JSON";
|
|
homepage = "https://github.com/vaidik/commentjson/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|