2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatch-fancy-pypi-readme,
|
|
|
|
hatch-vcs,
|
|
|
|
hatchling,
|
|
|
|
importlib-resources,
|
|
|
|
jsonschema-specifications,
|
|
|
|
pkgutil-resolve-name,
|
|
|
|
pip,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
referencing,
|
|
|
|
rpds-py,
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# optionals
|
|
|
|
fqdn,
|
|
|
|
idna,
|
|
|
|
isoduration,
|
|
|
|
jsonpointer,
|
|
|
|
rfc3339-validator,
|
|
|
|
rfc3986-validator,
|
|
|
|
rfc3987,
|
|
|
|
uri-template,
|
|
|
|
webcolors,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonschema";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "4.22.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-WyLUNKRZNRGa+ZBVLIYuXW1WTo9mASBrMFph/fZhorc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs json/bin/jsonschema_suite
|
|
|
|
'';
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
hatch-fancy-pypi-readme
|
2022-06-26 10:26:21 +00:00
|
|
|
hatch-vcs
|
|
|
|
hatchling
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[
|
|
|
|
attrs
|
|
|
|
jsonschema-specifications
|
|
|
|
referencing
|
|
|
|
rpds-py
|
|
|
|
]
|
|
|
|
++ lib.optionals (pythonOlder "3.9") [
|
|
|
|
importlib-resources
|
|
|
|
pkgutil-resolve-name
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2023-01-20 10:41:00 +00:00
|
|
|
format = [
|
|
|
|
fqdn
|
|
|
|
idna
|
|
|
|
isoduration
|
|
|
|
jsonpointer
|
|
|
|
rfc3339-validator
|
|
|
|
rfc3987
|
|
|
|
uri-template
|
|
|
|
webcolors
|
|
|
|
];
|
|
|
|
format-nongpl = [
|
|
|
|
fqdn
|
|
|
|
idna
|
|
|
|
isoduration
|
|
|
|
jsonpointer
|
|
|
|
rfc3339-validator
|
|
|
|
rfc3986-validator
|
|
|
|
uri-template
|
|
|
|
webcolors
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
pip
|
2023-08-10 07:59:29 +00:00
|
|
|
pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "jsonschema" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of JSON Schema validation";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jsonschema";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/python-jsonschema/jsonschema";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|