mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
fa051cdd0a
Upstream removed support for Python 3.4 [0][1] (and the build fails). [0]: https://github.com/aio-libs/aiohttp-cors/releases/tag/v0.7.0 [1]: https://github.com/aio-libs/aiohttp/releases/tag/v3.0.1
29 lines
653 B
Nix
29 lines
653 B
Nix
{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
|
|
, typing, aiohttp
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohttp-cors";
|
|
version = "0.7.0";
|
|
|
|
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 ];
|
|
};
|
|
}
|