1{ lib 2, buildPythonPackage 3, decorator 4, fetchFromGitHub 5, ply 6, pytestCheckHook 7, six 8}: 9 10buildPythonPackage rec { 11 pname = "jsonpath-ng"; 12 version = "1.5.2"; 13 14 src = fetchFromGitHub { 15 owner = "h2non"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "1cxjwhx0nj85a3awnl7j6afnk07awzv45qfwxl5jqbbc9cxh5bd6"; 19 }; 20 21 propagatedBuildInputs = [ 22 decorator 23 ply 24 six 25 ]; 26 27 checkInputs = [ pytestCheckHook ]; 28 29 disabledTestPaths = [ 30 # Exclude tests that require oslotest 31 "tests/test_jsonpath_rw_ext.py" 32 ]; 33 34 pythonImportsCheck = [ "jsonpath_ng" ]; 35 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 }; 42}