Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 24 lines 649 B view raw
1{lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, typing, aiohttp }: 2 3buildPythonPackage rec { 4 pname = "aiohttp-cors"; 5 version = "0.5.3"; 6 name = "${pname}-${version}"; 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in"; 10 }; 11 12 # Requires network access 13 doCheck = false; 14 15 propagatedBuildInputs = [ aiohttp ] 16 ++ lib.optional (pythonOlder "3.5") typing; 17 18 meta = with lib; { 19 description = "CORS support for aiohttp"; 20 homepage = "https://github.com/aio-libs/aiohttp-cors"; 21 license = licenses.asl20; 22 maintainers = with maintainers; [ primeos ]; 23 }; 24}