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
, fetchFromGitHub
, msgpack
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiocache";
version = "0.11.1";
version = "0.12.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = version;
sha256 = "1czs8pvhzi92qy2dch2995rb62mxpbhd80dh2ir7zpa9qcm6wxvx";
rev = "refs/tags/v${version}";
hash = "sha256-jNfU5jT2xLgwVeVp8jXrQ6QQuUDwMOxf+hZ7VFsMFpM=";
};
propagatedBuildInputs = [
passthru.optional-dependencies = {
redis = [
aioredis
];
msgpack = [
msgpack
];
};
# aiomcache would be required but last release was in 2017
doCheck = false;
pythonImportsCheck = [ "aiocache" ];
pythonImportsCheck = [
"aiocache"
];
meta = with lib; {
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 ];
maintainers = with maintainers; [ fab ];
};

View File

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