about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jsonpath-ng/default.nix
blob: a623c859e168df299a7fc447cd8a299267e22ad7 (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
{ lib
, buildPythonPackage
, decorator
, fetchFromGitHub
, ply
, pytestCheckHook
, six
}:

buildPythonPackage rec {
  pname = "jsonpath-ng";
  version = "1.5.2";

  src = fetchFromGitHub {
    owner = "h2non";
    repo = pname;
    rev = "v${version}";
    sha256 = "1cxjwhx0nj85a3awnl7j6afnk07awzv45qfwxl5jqbbc9cxh5bd6";
  };

  propagatedBuildInputs = [
    decorator
    ply
    six
  ];

  checkInputs = [ pytestCheckHook ];

  disabledTestFiles = [
    # Exclude tests that require oslotest
    "tests/test_jsonpath_rw_ext.py"
  ];

  pythonImportsCheck = [ "jsonpath_ng" ];

  meta = with lib; {
    description = "JSONPath implementation for Python";
    homepage = "https://github.com/h2non/jsonpath-ng";
    license = with licenses; [ asl20 ];
    maintainers = with maintainers; [ fab ];
  };
}