Merge pull request #215739 from superherointj/pkg-python311Packages.aiocache-0.12.0

python311Packages.aiocache: 0.11.1 -> 0.12.0

authored by

Nick Cao and committed by
GitHub
9bc97c17 5941c15e

+27 -13
+21 -9
pkgs/development/python-modules/aiocache/default.nix
··· 3 3 , buildPythonPackage 4 4 , fetchFromGitHub 5 5 , msgpack 6 + , pythonOlder 6 7 }: 7 8 8 9 buildPythonPackage rec { 9 10 pname = "aiocache"; 10 - version = "0.11.1"; 11 + version = "0.12.0"; 12 + format = "setuptools"; 13 + 14 + disabled = pythonOlder "3.7"; 11 15 12 16 src = fetchFromGitHub { 13 17 owner = "aio-libs"; 14 18 repo = pname; 15 - rev = version; 16 - sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx"; 19 + rev = "refs/tags/v${version}"; 20 + hash = "sha256-jNfU5jT2xLgwVeVp8jXrQ6QQuUDwMOxf+hZ7VFsMFpM="; 17 21 }; 18 22 19 - propagatedBuildInputs = [ 20 - aioredis 21 - msgpack 22 - ]; 23 + passthru.optional-dependencies = { 24 + redis = [ 25 + aioredis 26 + ]; 27 + msgpack = [ 28 + msgpack 29 + ]; 30 + }; 23 31 24 32 # aiomcache would be required but last release was in 2017 25 33 doCheck = false; 26 - pythonImportsCheck = [ "aiocache" ]; 34 + 35 + pythonImportsCheck = [ 36 + "aiocache" 37 + ]; 27 38 28 39 meta = with lib; { 29 40 description = "Python API Rate Limit Decorator"; 30 - homepage = "https://github.com/tomasbasham/ratelimit"; 41 + homepage = "https://github.com/aio-libs/aiocache"; 42 + changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}"; 31 43 license = with licenses; [ bsd3 ]; 32 44 maintainers = with maintainers; [ fab ]; 33 45 };
+6 -4
pkgs/development/python-modules/pyflunearyou/default.nix
··· 9 9 , pytest-aiohttp 10 10 , pytestCheckHook 11 11 , pythonOlder 12 + , pythonRelaxDepsHook 12 13 , msgpack 13 14 , ujson 14 15 }: ··· 27 28 sha256 = "sha256-Q65OSE4qckpvaIvZULBR434i7hwuVM97eSq1Blb1oIU="; 28 29 }; 29 30 30 - postPatch = '' 31 - substituteInPlace pyproject.toml \ 32 - --replace 'ujson = ">=1.35,<5.0"' 'ujson = "*"' 33 - ''; 31 + pythonRelaxDeps = [ 32 + "aiocache" 33 + "ujson" 34 + ]; 34 35 35 36 nativeBuildInputs = [ 36 37 poetry-core 38 + pythonRelaxDepsHook 37 39 ]; 38 40 39 41 propagatedBuildInputs = [