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.3"; 13 14 src = fetchFromGitHub { 15 owner = "h2non"; 16 repo = pname; 17 # missing tag https://github.com/h2non/jsonpath-ng/issues/114 18 rev = "cce4a3d4063ac8af928795acc53beb27a2bfd101"; 19 sha256 = "sha256-+9iQHQs5TQhZFeIqMlsa3FFPfZEktAWy1lSdJU7kZrc="; 20 }; 21 22 propagatedBuildInputs = [ 23 decorator 24 ply 25 six 26 ]; 27 28 checkInputs = [ pytestCheckHook ]; 29 30 disabledTestPaths = [ 31 # Exclude tests that require oslotest 32 "tests/test_jsonpath_rw_ext.py" 33 ]; 34 35 pythonImportsCheck = [ "jsonpath_ng" ]; 36 37 meta = with lib; { 38 description = "JSONPath implementation for Python"; 39 homepage = "https://github.com/h2non/jsonpath-ng"; 40 license = with licenses; [ asl20 ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}