about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/bc-jsonpath-ng/default.nix
blob: 2322f0407f9f8da0734a79243aeec6364ac83cea (plain) (blame)
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
46
47
48
49
{ lib
, buildPythonPackage
, decorator
, fetchFromGitHub
, ply
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "bc-jsonpath-ng";
  version = "1.6.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "bridgecrewio";
    repo = "jsonpath-ng";
    rev = "refs/tags/${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 = with lib; {
    description = "JSONPath implementation for Python";
    mainProgram = "bc_jsonpath_ng";
    homepage = "https://github.com/bridgecrewio/jsonpath-ng";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}