nixpkgs/pkgs/development/python-modules/aiohttp-cors/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

29 lines
677 B
Nix

{ lib, buildPythonPackage, fetchPypi, pythonOlder
, typing ? null, aiohttp
}:
buildPythonPackage rec {
pname = "aiohttp-cors";
version = "0.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad";
};
disabled = pythonOlder "3.5";
propagatedBuildInputs = [ aiohttp ]
++ lib.optional (pythonOlder "3.5") typing;
# Requires network access
doCheck = false;
meta = with lib; {
description = "CORS support for aiohttp";
homepage = "https://github.com/aio-libs/aiohttp-cors";
license = licenses.asl20;
maintainers = with maintainers; [ primeos ];
};
}