1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 ply, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "jsonpath-ng"; 13 version = "1.6.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "h2non"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-0ErTGxGlMn/k2KMwRV26WJpx85yJUfn6Hgp5pU4RZA4="; 23 }; 24 25 propagatedBuildInputs = [ 26 ply 27 setuptools 28 ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 disabledTestPaths = [ 33 # Exclude tests that require oslotest 34 "tests/test_jsonpath_rw_ext.py" 35 ]; 36 37 pythonImportsCheck = [ "jsonpath_ng" ]; 38 39 meta = with lib; { 40 description = "JSONPath implementation"; 41 mainProgram = "jsonpath_ng"; 42 homepage = "https://github.com/h2non/jsonpath-ng"; 43 changelog = "https://github.com/h2non/jsonpath-ng/blob/v${version}/History.md"; 44 license = with licenses; [ asl20 ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}