Files
nixpkgs/pkgs/development/python-modules/aiohttp-apispec/default.nix
T
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,
aiohttp,
apispec,
buildPythonPackage,
fetchFromGitHub,
jinja2,
packaging,
pytest-aiohttp,
pytestCheckHook,
setuptools,
webargs,
}:
buildPythonPackage rec {
pname = "aiohttp-apispec";
version = "3.0.0b2";
pyproject = true;
src = fetchFromGitHub {
owner = "maximdanilchenko";
repo = "aiohttp-apispec";
tag = "v${version}";
hash = "sha256-C+/M25oCLTNGGEUj2EyXn3UjcvPvDYFmmUW8IOoF1uU=";
};
doCheck = false;
/*
postPatch = ''
substituteInPlace tests/conftest.py \
--replace-fail 'aiohttp_app(loop,' 'aiohttp_app(event_loop,' \
--replace-fail 'return loop.run_until_complete' 'return event_loop.run_until_complete'
'';
*/
build-system = [ setuptools ];
dependencies = [
aiohttp
apispec
jinja2
packaging
webargs
];
nativeCheckInputs = [
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "aiohttp_apispec" ];
meta = {
description = "Build and document REST APIs with aiohttp and apispec";
homepage = "https://github.com/maximdanilchenko/aiohttp-apispec/";
license = lib.licenses.mit;
maintainers = [ ];
};
}