forked from mirrors/nixpkgs
aiohttp-cors: 0.5.1 -> 0.5.3
This commit is contained in:
parent
c0616a3234
commit
eb125adf24
24
pkgs/development/python-modules/aiohttp/cors.nix
Normal file
24
pkgs/development/python-modules/aiohttp/cors.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder, typing, aiohttp }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp-cors";
|
||||
version = "0.5.3";
|
||||
name = "${pname}-${version}";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in";
|
||||
};
|
||||
|
||||
# Requires network access
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ aiohttp ]
|
||||
++ lib.optional (pythonOlder "3.5") typing;
|
||||
|
||||
meta = with lib; {
|
||||
description = "CORS support for aiohttp";
|
||||
homepage = "https://github.com/aio-libs/aiohttp-cors";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ primeos ];
|
||||
};
|
||||
}
|
|
@ -321,30 +321,7 @@ in {
|
|||
|
||||
aiohttp = callPackage ../development/python-modules/aiohttp { };
|
||||
|
||||
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; [ 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 ];
|
||||
};
|
||||
};
|
||||
aiohttp-cors = callPackage ../development/python-modules/aiohttp/cors.nix { };
|
||||
|
||||
alabaster = callPackage ../development/python-modules/alabaster {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue