1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 aiohttp, 11 12 # optional-dependencies 13 aiomcache, 14 cryptography, 15 pynacl, 16 redis, 17}: 18 19buildPythonPackage rec { 20 pname = "aiohttp-session"; 21 version = "2.12.1"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "aio-libs"; 26 repo = "aiohttp-session"; 27 tag = "v${version}"; 28 hash = "sha256-mGWtHo/+jdCmv3TmUUv42hWSiLzPiP5ytB25pVyvZig="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ aiohttp ]; 34 35 optional-dependencies = { 36 aioredis = [ redis ]; 37 aiomcache = [ aiomcache ]; 38 pycrypto = [ cryptography ]; 39 secure = [ cryptography ]; 40 pynacl = [ pynacl ]; 41 }; 42 43 doCheck = false; # runs redis in docker 44 45 pythonImportsCheck = [ "aiohttp_session" ]; 46 47 meta = with lib; { 48 description = "Web sessions for aiohttp.web"; 49 homepage = "https://github.com/aio-libs/aiohttp-session"; 50 changelog = "https://github.com/aio-libs/aiohttp-session/blob/${src.rev}/CHANGES.txt"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ hexa ]; 53 }; 54}