nixpkgs/pkgs/development/python-modules/openapi3/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
pyyaml,
setuptools,
pytestCheckHook,
pytest-asyncio,
uvloop,
hypercorn,
starlette,
pydantic,
}:
buildPythonPackage rec {
pname = "openapi3";
version = "1.8.2";
pyproject = true;
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 ];
};
}