1{
2 lib,
3 buildPythonPackage,
4 decorator,
5 fetchFromGitHub,
6 ply,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "bc-jsonpath-ng";
13 version = "1.6.1";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "bridgecrewio";
20 repo = "jsonpath-ng";
21 tag = version;
22 hash = "sha256-FWP4tzlacAWVXG3YnPwl5MKc12geaCxZ2xyKx9PSarU=";
23 };
24
25 propagatedBuildInputs = [
26 decorator
27 ply
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 disabledTestPaths = [
33 # Exclude tests that require oslotest
34 "tests/test_jsonpath_rw_ext.py"
35 ];
36
37 pythonImportsCheck = [ "bc_jsonpath_ng" ];
38
39 meta = with lib; {
40 description = "JSONPath implementation for Python";
41 mainProgram = "bc_jsonpath_ng";
42 homepage = "https://github.com/bridgecrewio/jsonpath-ng";
43 license = with licenses; [ asl20 ];
44 maintainers = with maintainers; [ fab ];
45 };
46}