Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 33 lines 687 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 typing ? null, 7 aiohttp, 8}: 9 10buildPythonPackage rec { 11 pname = "aiohttp-cors"; 12 version = "0.7.0"; 13 format = "setuptools"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "0pczn54bqd32v8zhfbjfybiza6xh1szwxy6as577dn8g23bwcfad"; 18 }; 19 20 disabled = pythonOlder "3.5"; 21 22 propagatedBuildInputs = [ aiohttp ] ++ lib.optional (pythonOlder "3.5") typing; 23 24 # Requires network access 25 doCheck = false; 26 27 meta = with lib; { 28 description = "CORS support for aiohttp"; 29 homepage = "https://github.com/aio-libs/aiohttp-cors"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ primeos ]; 32 }; 33}