depot/third_party/nixpkgs/pkgs/development/python-modules/aiocache/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

46 lines
931 B
Nix

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