biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / cashews / default.nix
blobaf6f0a3d0cefc896dac07ce17f881aa737414f0e
2   bitarray,
3   buildPythonPackage,
4   dill,
5   diskcache,
6   fetchFromGitHub,
7   hiredis,
8   hypothesis,
9   lib,
10   pytest,
11   pytest-asyncio,
12   pytest-cov-stub,
13   pytest-rerunfailures,
14   pytestCheckHook,
15   redis,
16   setuptools,
17   xxhash,
20 buildPythonPackage rec {
21   pname = "cashews";
22   version = "7.2.0";
23   pyproject = true;
25   src = fetchFromGitHub {
26     owner = "Krukov";
27     repo = "cashews";
28     rev = "refs/tags/${version}";
29     hash = "sha256-7T9M8ioeTjW7OmcHyxZ6awNfp9kVU8Hi+Lgy17jXxK4=";
30   };
32   build-system = [ setuptools ];
34   optional-dependencies = {
35     dill = [ dill ];
36     diskcache = [ diskcache ];
37     redis = [ redis ];
38     speedup = [
39       bitarray
40       hiredis
41       xxhash
42     ];
43   };
45   nativeCheckInputs = [
46     hypothesis
47     pytest
48     pytest-asyncio
49     pytest-cov-stub
50     pytest-rerunfailures
51     pytestCheckHook
52   ];
54   disabledTests = [
55     # these tests require too many dependencies
56     "redis"
57     "diskcache"
58     "integration"
59   ];
61   pythonImportsCheck = [ "cashews" ];
63   meta = {
64     description = "Cache tools with async power";
65     homepage = "https://github.com/Krukov/cashews/";
66     changelog = "https://github.com/Krukov/cashews/releases/tag/${version}";
67     license = lib.licenses.mit;
68     maintainers = with lib.maintainers; [ moraxyc ];
69   };