linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / jsonpath-ng / default.nix
blobda3a03c2a3e09cc3f0a2bf598d0d240dcd61837d
1 { lib
2 , buildPythonPackage
3 , decorator
4 , fetchFromGitHub
5 , ply
6 , pytestCheckHook
7 , six
8 }:
10 buildPythonPackage rec {
11   pname = "jsonpath-ng";
12   version = "1.5.2";
14   src = fetchFromGitHub {
15     owner = "h2non";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "1cxjwhx0nj85a3awnl7j6afnk07awzv45qfwxl5jqbbc9cxh5bd6";
19   };
21   propagatedBuildInputs = [
22     decorator
23     ply
24     six
25   ];
27   checkInputs = [ pytestCheckHook ];
29   disabledTestPaths = [
30     # Exclude tests that require oslotest
31     "tests/test_jsonpath_rw_ext.py"
32   ];
34   pythonImportsCheck = [ "jsonpath_ng" ];
36   meta = with lib; {
37     description = "JSONPath implementation for Python";
38     homepage = "https://github.com/h2non/jsonpath-ng";
39     license = with licenses; [ asl20 ];
40     maintainers = with maintainers; [ fab ];
41   };