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