python3Packages.json-schema-to-pydantic: init at 0.4.7
this is required for llm-anthropic v0.23
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user