blob: f993b4e068ca29553b59f278500529b8ab97e78e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
six,
lark,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "commentjson";
version = "0.9.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "vaidik";
repo = "commentjson";
rev = "v${version}";
hash = "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
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "commentjson" ];
meta = {
description = "Add JavaScript or Python style comments in JSON";
homepage = "https://github.com/vaidik/commentjson/";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|