python312Packages.aiohttp-client-cache: refactor
- enable tests - add pythonImportsCheck
This commit is contained in:
parent
2d176f8e60
commit
56cc7996d7
@ -1,32 +1,87 @@
|
||||
{
|
||||
lib,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
poetry-core,
|
||||
aioboto3,
|
||||
aiobotocore,
|
||||
aiofiles,
|
||||
aiohttp,
|
||||
aiosqlite,
|
||||
attrs,
|
||||
buildPythonPackage,
|
||||
faker,
|
||||
fetchPypi,
|
||||
itsdangerous,
|
||||
motor,
|
||||
poetry-core,
|
||||
pytest-aiohttp,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
redis,
|
||||
url-normalize,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aiohttp_client_cache";
|
||||
pname = "aiohttp-client-cache";
|
||||
version = "0.11.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "aiohttp_client_cache";
|
||||
inherit version;
|
||||
hash = "sha256-MuY60hAkD4Ik8+Encv5TrBAs8kx88Y3bhqy7n9+eS28=";
|
||||
};
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
propagatedBuildInputs = [
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
attrs
|
||||
itsdangerous
|
||||
url-normalize
|
||||
];
|
||||
|
||||
optional-dependencies = {
|
||||
all = [
|
||||
aioboto3
|
||||
aiobotocore
|
||||
aiofiles
|
||||
aiosqlite
|
||||
motor
|
||||
redis
|
||||
];
|
||||
dynamodb = [
|
||||
aioboto3
|
||||
aiobotocore
|
||||
];
|
||||
filesystem = [
|
||||
aiofiles
|
||||
aiosqlite
|
||||
];
|
||||
mongodb = [ motor ];
|
||||
redis = [ redis ];
|
||||
sqlite = [ aiosqlite ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
faker
|
||||
pytest-aiohttp
|
||||
pytestCheckHook
|
||||
] ++ lib.flatten (builtins.attrValues optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "aiohttp_client_cache" ];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require running instances of the services
|
||||
"test/integration/test_dynamodb.py"
|
||||
"test/integration/test_redis.py"
|
||||
"test/integration/test_sqlite.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Async persistent cache for aiohttp requests";
|
||||
homepage = "https://pypi.org/project/aiohttp-client-cache/";
|
||||
homepage = "https://github.com/requests-cache/aiohttp-client-cache";
|
||||
changelog = "https://github.com/requests-cache/aiohttp-client-cache/blob/v${version}/HISTORY.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ seirl ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user