blob: 07ebf05b5184fc46208d6f78d82f44b8f103d2f2 (
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
|
{
lib,
buildPythonPackage,
decorator,
fetchFromGitHub,
ply,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bc-jsonpath-ng";
version = "1.6.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "bridgecrewio";
repo = "jsonpath-ng";
tag = version;
hash = "sha256-FWP4tzlacAWVXG3YnPwl5MKc12geaCxZ2xyKx9PSarU=";
};
propagatedBuildInputs = [
decorator
ply
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# Exclude tests that require oslotest
"tests/test_jsonpath_rw_ext.py"
];
pythonImportsCheck = [ "bc_jsonpath_ng" ];
meta = {
description = "JSONPath implementation for Python";
mainProgram = "bc_jsonpath_ng";
homepage = "https://github.com/bridgecrewio/jsonpath-ng";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|