1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pydantic, 7}: 8 9buildPythonPackage rec { 10 pname = "openapi-pydantic"; 11 version = "0.5.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "mike-oakley"; 16 repo = "openapi-pydantic"; 17 rev = "v${version}"; 18 hash = "sha256-SMAjzHGuu+QVWe/y8jQ4UWJI9f+pLR2BxgjvE6vOT0Q="; 19 }; 20 21 build-system = [ 22 poetry-core 23 ]; 24 25 dependencies = [ 26 pydantic 27 ]; 28 29 pythonImportsCheck = [ 30 "openapi_pydantic" 31 ]; 32 33 meta = { 34 description = "Pydantic OpenAPI schema implementation"; 35 homepage = "https://github.com/mike-oakley/openapi-pydantic"; 36 license = lib.licenses.mit; 37 maintainers = with lib.maintainers; [ taha-yassine ]; 38 }; 39}