13 buildPythonPackage rec {
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
23 rev = "refs/tags/${version}";
24 hash = "sha256-go/3HntSLzzTmHS9CxGPHT6mwXl+6LuWFmkGygGIjqU=";
27 build-system = [ poetry-core ];
35 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
36 # test fails due to unknown reason on darwin
37 "test_lru_and_ttl_refresh"
40 pythonImportsCheck = [ "onecache" ];
43 changelog = "https://github.com/sonic182/onecache/blob/${version}/CHANGELOG.md";
44 description = "Python LRU and TTL cache for sync and async code";
45 license = lib.licenses.mit;
46 homepage = "https://github.com/sonic182/onecache";
47 maintainers = with lib.maintainers; [ geraldog ];