Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 poetry-core, 7 pathable, 8 pyyaml, 9 referencing, 10 pytestCheckHook, 11 responses, 12}: 13 14buildPythonPackage rec { 15 pname = "jsonschema-path"; 16 version = "0.3.3"; 17 18 disabled = pythonOlder "3.8"; 19 20 pyproject = true; 21 22 src = fetchFromGitHub { 23 owner = "p1c2u"; 24 repo = "jsonschema-path"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-oBzB6Ke19QDcMQm4MpnaS132/prrtnCekAXuPMloZx4="; 27 }; 28 29 postPatch = '' 30 sed -i '/--cov/d' pyproject.toml 31 ''; 32 33 build-system = [ poetry-core ]; 34 35 propagatedBuildInputs = [ 36 pathable 37 pyyaml 38 referencing 39 ]; 40 41 pythonImportsCheck = [ "jsonschema_path" ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 responses 46 ]; 47 48 meta = { 49 changelog = "https://github.com/p1c2u/jsonschema-path/releases/tag/${version}"; 50 description = "JSONSchema Spec with object-oriented paths"; 51 homepage = "https://github.com/p1c2u/jsonschema-path"; 52 license = lib.licenses.asl20; 53 maintainers = with lib.maintainers; [ dotlambda ]; 54 }; 55}