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

python311Packages.aiocache: 0.11.1 -> 0.12.0
This commit is contained in:
Nick Cao 2023-02-12 08:56:58 +08:00 committed by GitHub
commit 9bc97c1791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 13 deletions

View File

@ -3,31 +3,43 @@
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, msgpack , msgpack
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiocache"; pname = "aiocache";
version = "0.11.1"; version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "aio-libs"; owner = "aio-libs";
repo = pname; repo = pname;
rev = version; rev = "refs/tags/v${version}";
sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx"; hash = "sha256-jNfU5jT2xLgwVeVp8jXrQ6QQuUDwMOxf+hZ7VFsMFpM=";
}; };
propagatedBuildInputs = [ passthru.optional-dependencies = {
aioredis redis = [
msgpack aioredis
]; ];
msgpack = [
msgpack
];
};
# aiomcache would be required but last release was in 2017 # aiomcache would be required but last release was in 2017
doCheck = false; doCheck = false;
pythonImportsCheck = [ "aiocache" ];
pythonImportsCheck = [
"aiocache"
];
meta = with lib; { meta = with lib; {
description = "Python API Rate Limit Decorator"; description = "Python API Rate Limit Decorator";
homepage = "https://github.com/tomasbasham/ratelimit"; homepage = "https://github.com/aio-libs/aiocache";
changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}";
license = with licenses; [ bsd3 ]; license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };

View File

@ -9,6 +9,7 @@
, pytest-aiohttp , pytest-aiohttp
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, pythonRelaxDepsHook
, msgpack , msgpack
, ujson , ujson
}: }:
@ -27,13 +28,14 @@ buildPythonPackage rec {
sha256 = "sha256-Q65OSE4qckpvaIvZULBR434i7hwuVM97eSq1Blb1oIU="; sha256 = "sha256-Q65OSE4qckpvaIvZULBR434i7hwuVM97eSq1Blb1oIU=";
}; };
postPatch = '' pythonRelaxDeps = [
substituteInPlace pyproject.toml \ "aiocache"
--replace 'ujson = ">=1.35,<5.0"' 'ujson = "*"' "ujson"
''; ];
nativeBuildInputs = [ nativeBuildInputs = [
poetry-core poetry-core
pythonRelaxDepsHook
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [