mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
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:
commit
9bc97c1791
@ -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 = [
|
||||
aioredis
|
||||
msgpack
|
||||
];
|
||||
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 ];
|
||||
};
|
||||
|
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user