1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 pythonRelaxDepsHook, 8 pathable, 9 pyyaml, 10 referencing, 11 pytestCheckHook, 12 responses, 13}: 14 15buildPythonPackage rec { 16 pname = "jsonschema-path"; 17 version = "0.3.2"; 18 19 disabled = pythonOlder "3.8"; 20 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "p1c2u"; 25 repo = "jsonschema-path"; 26 rev = version; 27 hash = "sha256-HC0yfACKFIQEQoIa8/FUKyV8YS8TQ0BY7i3n9xCdKz8="; 28 }; 29 30 postPatch = '' 31 sed -i '/--cov/d' pyproject.toml 32 ''; 33 34 nativeBuildInputs = [ 35 poetry-core 36 pythonRelaxDepsHook 37 ]; 38 39 pythonRelaxDeps = [ "referencing" ]; 40 41 propagatedBuildInputs = [ 42 pathable 43 pyyaml 44 referencing 45 ]; 46 47 pythonImportsCheck = [ "jsonschema_path" ]; 48 49 nativeCheckInputs = [ 50 pytestCheckHook 51 responses 52 ]; 53 54 meta = { 55 description = "JSONSchema Spec with object-oriented paths"; 56 homepage = "https://github.com/p1c2u/jsonschema-path"; 57 license = lib.licenses.asl20; 58 maintainers = with lib.maintainers; [ dotlambda ]; 59 }; 60}