about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jsonschema-specifications/default.nix
blob: 07fd3dcd589541e46c6d3275ddb7337882f4d491 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{ lib
, buildPythonPackage
, fetchPypi
, hatch-vcs
, hatchling
, importlib-resources
, pytestCheckHook
, pythonOlder
, referencing
}:

buildPythonPackage rec {
  pname = "jsonschema-specifications";
  version = "2023.11.2";
  format = "pyproject";

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    pname = "jsonschema_specifications";
    inherit version;
    hash = "sha256-lHL8T+pHTNdL6korGQ2uzLWp5NsuqA7896G1gvyagbg=";
  };

  nativeBuildInputs = [
    hatch-vcs
    hatchling
  ];

  propagatedBuildInputs = [
    referencing
  ] ++ lib.optionals (pythonOlder "3.9") [
    importlib-resources
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "jsonschema_specifications"
  ];

  meta = with lib; {
    description = "Support files exposing JSON from the JSON Schema specifications";
    homepage = "https://github.com/python-jsonschema/jsonschema-specifications";
    license = licenses.mit;
    maintainers = with maintainers; [ SuperSandro2000 ];
  };
}