python3Packages.json-schema-to-pydantic: init at 0.4.9 (#473357)

This commit is contained in:
Michael Daniels
2026-02-07 22:16:45 +00:00
committed by GitHub
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-vcs,
pydantic,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "json-schema-to-pydantic";
version = "0.4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "richard-gyiko";
repo = "json-schema-to-pydantic";
tag = "v${finalAttrs.version}";
hash = "sha256-j3E3jkb9l5s4JnGeBACG4/GznB1F+S2Fh0ncZEvvXuM=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [ pydantic ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "json_schema_to_pydantic" ];
meta = {
description = "Generates Pydantic v2 models from JSON Schema definitions";
homepage = "https://github.com/richard-gyiko/json-schema-to-pydantic";
changelog = "https://github.com/richard-gyiko/json-schema-to-pydantic/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aos ];
};
})
+2
View File
@@ -7818,6 +7818,8 @@ self: super: with self; {
json-schema-for-humans = callPackage ../development/python-modules/json-schema-for-humans { };
json-schema-to-pydantic = callPackage ../development/python-modules/json-schema-to-pydantic { };
json-stream = callPackage ../development/python-modules/json-stream { };
json-stream-rs-tokenizer = callPackage ../development/python-modules/json-stream-rs-tokenizer { };