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