1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 ply,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "jsonpath-ng";
13 version = "1.7.0";
14 pypropject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "h2non";
20 repo = "jsonpath-ng";
21 tag = "v${version}";
22 hash = "sha256-sfIqEc5SsNQYxK+Ur00fFdVoC0ysOkHrx4Cq/3SpGHw=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ ply ];
28
29 nativeCheckInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "jsonpath_ng" ];
32
33 meta = with lib; {
34 description = "JSONPath implementation";
35 homepage = "https://github.com/h2non/jsonpath-ng";
36 changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md";
37 license = licenses.asl20;
38 maintainers = with maintainers; [ fab ];
39 mainProgram = "jsonpath_ng";
40 };
41}