From 15bf0f68c31d804d630ec17f080c0e4e7fbc1109 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Sun, 6 Aug 2017 16:26:06 +0200 Subject: [PATCH] pythonPackages.aiohttp-cors: init at 0.5.1 --- pkgs/top-level/python-packages.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 97487d237e0e..784765bec988 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -315,6 +315,31 @@ in { }; }; + aiohttp-cors = buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "aiohttp-cors"; + # 0.5.3 is the current version but gns3-server requires 0.5.1 + version = "0.5.1"; + + src = pkgs.fetchurl { + url = "mirror://pypi/a/${pname}/${name}.tar.gz"; + sha256 = "0szma27ri25fq4nwwvs36myddggw3jz4pyzmq63yz4xpw0jjdxck"; + }; + + # Requires network access + doCheck = false; + + propagatedBuildInputs = with self; [ zodb3 aiohttp ] + ++ optional (pythonOlder "3.5") typing; + + meta = { + description = "CORS support for aiohttp"; + homepage = "https://github.com/aio-libs/aiohttp-cors"; + license = licenses.asl20; + maintainers = with maintainers; [ primeos ]; + }; + }; + alabaster = callPackage ../development/python-modules/alabaster {}; alembic = callPackage ../development/python-modules/alembic {};