biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / onecache / default.nix
blobfb1aa5c6548436244486e5117917f7f11a2c662c
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   poetry-core,
7   pytestCheckHook,
8   pytest-cov-stub,
9   pytest-asyncio,
10   stdenv,
13 buildPythonPackage rec {
14   pname = "onecache";
15   version = "0.7.0";
16   pyproject = true;
18   disabled = pythonOlder "3.8";
20   src = fetchFromGitHub {
21     owner = "sonic182";
22     repo = "onecache";
23     rev = "refs/tags/${version}";
24     hash = "sha256-go/3HntSLzzTmHS9CxGPHT6mwXl+6LuWFmkGygGIjqU=";
25   };
27   build-system = [ poetry-core ];
29   nativeCheckInputs = [
30     pytestCheckHook
31     pytest-cov-stub
32     pytest-asyncio
33   ];
35   disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
36     # test fails due to unknown reason on darwin
37     "test_lru_and_ttl_refresh"
38   ];
40   pythonImportsCheck = [ "onecache" ];
42   meta = {
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 ];
48   };