python3Packages.openapi-schema-pydantic: init at 1.2.4
This commit is contained in:
parent
050649477d
commit
4503d47a56
2 changed files with 46 additions and 0 deletions
|
@ -0,0 +1,44 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, pydantic
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "openapi-schema-pydantic";
|
||||
version = "1.2.4";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-PiLPWLdKafdSzH5fFTf25EFkKC2ycAy7zTu5nd0GUZY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pydantic
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# these tests are broken with `pydantic >= 1.10`
|
||||
# but this library seems to work fine.
|
||||
# e.g. https://github.com/hwchase17/langchain/blob/d86ed15d8884d5a3f120a433b9dda065647e4534/poetry.lock#L6011-L6012
|
||||
"test_pydantic_discriminator_schema_generation"
|
||||
"test_pydantic_discriminator_openapi_generation"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenAPI (v3) specification schema as pydantic class";
|
||||
homepage = "https://github.com/kuimono/openapi-schema-pydantic";
|
||||
changelog = "https://github.com/kuimono/openapi-schema-pydantic/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
|
@ -6910,6 +6910,8 @@ self: super: with self; {
|
|||
|
||||
openant = callPackage ../development/python-modules/openant { };
|
||||
|
||||
openapi-schema-pydantic = callPackage ../development/python-modules/openapi-schema-pydantic { };
|
||||
|
||||
openapi-schema-validator = callPackage ../development/python-modules/openapi-schema-validator { };
|
||||
|
||||
openapi-spec-validator = callPackage ../development/python-modules/openapi-spec-validator { };
|
||||
|
|
Loading…
Reference in a new issue