1{ lib 2, buildPythonPackage 3, fetchPypi 4, hatch-vcs 5, hatchling 6, importlib-resources 7, pytestCheckHook 8, pythonOlder 9, referencing 10}: 11 12buildPythonPackage rec { 13 pname = "jsonschema-specifications"; 14 version = "2023.7.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 pname = "jsonschema_specifications"; 21 inherit version; 22 hash = "sha256-yRpQQE6Iofa6QGNneOLuCPbiTFYT/kxTrCRXilp/crs="; 23 }; 24 25 nativeBuildInputs = [ 26 hatch-vcs 27 hatchling 28 ]; 29 30 propagatedBuildInputs = [ 31 referencing 32 ] ++ lib.optionals (pythonOlder "3.9") [ 33 importlib-resources 34 ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 ]; 39 40 pythonImportsCheck = [ 41 "jsonschema_specifications" 42 ]; 43 44 meta = with lib; { 45 description = "Support files exposing JSON from the JSON Schema specifications"; 46 homepage = "https://github.com/python-jsonschema/jsonschema-specifications"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ SuperSandro2000 ]; 49 }; 50}