Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jsonpath-ng / default.nix
blob0496df1622ff0f331688e5fdc2d34a3249fa5a69
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , ply
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 }:
10 buildPythonPackage rec {
11   pname = "jsonpath-ng";
12   version = "1.6.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "h2non";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-0ErTGxGlMn/k2KMwRV26WJpx85yJUfn6Hgp5pU4RZA4=";
22   };
24   propagatedBuildInputs = [
25     ply
26     setuptools
27   ];
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   disabledTestPaths = [
34     # Exclude tests that require oslotest
35     "tests/test_jsonpath_rw_ext.py"
36   ];
38   pythonImportsCheck = [
39     "jsonpath_ng"
40   ];
42   meta = with lib; {
43     description = "JSONPath implementation";
44     mainProgram = "jsonpath_ng";
45     homepage = "https://github.com/h2non/jsonpath-ng";
46     changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md";
47     license = with licenses; [ asl20 ];
48     maintainers = with maintainers; [ fab ];
49   };