summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/bc-jsonpath-ng/default.nix
blob: 59a20a28af2d9589d98620867fc64d2b5bbfbd8f (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
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  decorator,
  fetchFromGitHub,
  ply,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "bc-jsonpath-ng";
  version = "1.6.1";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "bridgecrewio";
    repo = "jsonpath-ng";
    tag = finalAttrs.version;
    hash = "sha256-FWP4tzlacAWVXG3YnPwl5MKc12geaCxZ2xyKx9PSarU=";
  };

  build-system = [ setuptools ];

  dependencies = [
    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 = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
})