Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 94 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ lib, aiohttp, aiomcache, buildPythonPackage, fetchFromGitHub, marshmallow, msgpack, pkgs, pythonOlder, pytest-asyncio, pytest-mock, pytestCheckHook, redis, setuptools,}:
buildPythonPackage rec { pname = "aiocache"; version = "0.12.2"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "aio-libs"; repo = "aiocache"; rev = "refs/tags/v${version}"; hash = "sha256-yvXDNJL8uxReaU81klVWudJwh1hmvg5GeeILcNpm/YA="; };
postPatch = '' substituteInPlace setup.cfg \ --replace-fail "--cov=aiocache --cov=tests/ --cov-report term" "" '';
build-system = [ setuptools ];
optional-dependencies = { redis = [ redis ]; memcached = [ aiomcache ]; msgpack = [ msgpack ]; };
nativeCheckInputs = [ aiohttp marshmallow pytest-asyncio pytest-mock pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [ "-W" "ignore::DeprecationWarning" # TypeError: object MagicMock can't be used in 'await' expression "--deselect=tests/ut/backends/test_redis.py::TestRedisBackend::test_close" ];
disabledTests = [ # Test calls apache benchmark and fails, no usable output "test_concurrency_error_rates" ];
disabledTestPaths = [ # Benchmark and performance tests are not relevant for Nixpkgs "tests/performance/" ];
preCheck = '' ${lib.getBin pkgs.redis}/bin/redis-server & REDIS_PID=$!
${lib.getBin pkgs.memcached}/bin/memcached & MEMCACHED_PID=$! '';
postCheck = '' kill $REDIS_PID kill $MEMCACHED_PID '';
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aiocache" ];
meta = with lib; { description = "Python API Rate Limit Decorator"; homepage = "https://github.com/aio-libs/aiocache"; changelog = "https://github.com/aio-libs/aiocache/releases/tag/v${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; };}