Files
nixpkgs/pkgs/development/python-modules/openapi3/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

64 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
requests,
pyyaml,
setuptools,
pytestCheckHook,
pytest-asyncio,
uvloop,
hypercorn,
starlette,
pydantic,
}:
buildPythonPackage rec {
pname = "openapi3";
version = "1.8.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Dorthu";
repo = "openapi3";
rev = version;
hash = "sha256-Crn+nRbptRycnWJzH8Tm/BBLcBSRCcNtLX8NoKnSDdA=";
};
# pydantic==1.10.2 only affects checks
pythonRelaxDeps = [ "pydantic" ];
build-system = [ setuptools ];
dependencies = [
requests
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
pydantic
uvloop
hypercorn
starlette
];
disabledTestPaths = [
# tests old fastapi behaviour
"tests/fastapi_test.py"
];
pythonImportsCheck = [ "openapi3" ];
meta = {
changelog = "https://github.com/Dorthu/openapi3/releases/tag/${version}";
description = "Python3 OpenAPI 3 Spec Parser";
homepage = "https://github.com/Dorthu/openapi3";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ techknowlogick ];
};
}