2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
2024-10-11 05:15:48 +00:00
|
|
|
fetchFromGitHub,
|
2024-06-05 15:53:02 +00:00
|
|
|
requests,
|
|
|
|
pyyaml,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2024-10-11 05:15:48 +00:00
|
|
|
pytest-asyncio,
|
|
|
|
uvloop,
|
|
|
|
hypercorn,
|
|
|
|
starlette,
|
|
|
|
pydantic_1,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "openapi3";
|
|
|
|
version = "1.8.2";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2024-10-11 05:15:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dorthu";
|
|
|
|
repo = "openapi3";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-Crn+nRbptRycnWJzH8Tm/BBLcBSRCcNtLX8NoKnSDdA=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
pydantic_1
|
|
|
|
uvloop
|
|
|
|
hypercorn
|
|
|
|
starlette
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# tests old fastapi behaviour
|
|
|
|
"tests/fastapi_test.py"
|
|
|
|
];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "openapi3" ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/Dorthu/openapi3/releases/tag/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python3 OpenAPI 3 Spec Parser";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/Dorthu/openapi3";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
|
|
};
|
|
|
|
}
|