mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
40 lines
726 B
Nix
40 lines
726 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pydantic,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openapi-pydantic";
|
|
version = "0.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mike-oakley";
|
|
repo = "openapi-pydantic";
|
|
rev = "v${version}";
|
|
hash = "sha256-SMAjzHGuu+QVWe/y8jQ4UWJI9f+pLR2BxgjvE6vOT0Q=";
|
|
};
|
|
|
|
build-system = [
|
|
poetry-core
|
|
];
|
|
|
|
dependencies = [
|
|
pydantic
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"openapi_pydantic"
|
|
];
|
|
|
|
meta = {
|
|
description = "Pydantic OpenAPI schema implementation";
|
|
homepage = "https://github.com/mike-oakley/openapi-pydantic";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ taha-yassine ];
|
|
};
|
|
}
|