19 buildPythonPackage rec {
24 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
29 rev = "refs/tags/v${version}";
30 hash = "sha256-4QYCRXMWlt9fsiWgUTc2pKzXG7AG/zGmd4HT5ggIZNM=";
33 build-system = [ setuptools ];
35 optional-dependencies = {
37 memcached = [ aiomcache ];
38 msgpack = [ msgpack ];
48 ] ++ lib.flatten (lib.attrValues optional-dependencies);
52 "ignore::DeprecationWarning"
53 # TypeError: object MagicMock can't be used in 'await' expression
54 "--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close"
58 # Test calls apache benchmark and fails, no usable output
59 "test_concurrency_error_rates"
63 # Benchmark and performance tests are not relevant for Nixpkgs
68 ${lib.getBin pkgs.redis}/bin/redis-server &
71 ${lib.getBin pkgs.memcached}/bin/memcached &
80 __darwinAllowLocalNetworking = true;
82 pythonImportsCheck = [ "aiocache" ];
85 description = "Python API Rate Limit Decorator";
86 homepage = "https://github.com/aio-libs/aiocache";
87 changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}";
88 license = licenses.bsd3;
89 maintainers = with maintainers; [ fab ];