biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / cachier / default.nix
blob93a0def9973ce8e6a83405b6f5826031095dfd0c
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools,
7   watchdog,
8   portalocker,
9   pytestCheckHook,
10   pytest-cov-stub,
11   pymongo,
12   dnspython,
13   pymongo-inmemory,
14   pandas,
15   birch,
18 buildPythonPackage rec {
19   pname = "cachier";
20   version = "3.0.1";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "python-cachier";
27     repo = "cachier";
28     rev = "refs/tags/v${version}";
29     hash = "sha256-VApP1DRs+mjx+SELpdDOm2Sa7zBYHDqD/htFF/eNLu0=";
30   };
32   pythonRemoveDeps = [ "setuptools" ];
34   nativeBuildInputs = [
35     setuptools
36   ];
38   dependencies = [
39     watchdog
40     portalocker
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45     pytest-cov-stub
46     pymongo
47     dnspython
48     pymongo-inmemory
49     pandas
50     birch
51   ];
53   disabledTests = [
54     # touches network
55     "test_mongetter_default_param"
56     "test_stale_after_applies_dynamically"
57     "test_next_time_applies_dynamically"
58     "test_wait_for_calc_"
59     "test_precache_value"
60     "test_ignore_self_in_methods"
61     "test_mongo_index_creation"
62     "test_mongo_core"
64     # don't test formatting
65     "test_flake8"
66   ];
68   preBuild = ''
69     export HOME="$(mktemp -d)"
70   '';
72   pythonImportsCheck = [ "cachier" ];
74   meta = {
75     homepage = "https://github.com/python-cachier/cachier";
76     description = "Persistent, stale-free, local and cross-machine caching for functions";
77     mainProgram = "cachier";
78     maintainers = with lib.maintainers; [ pbsds ];
79     license = lib.licenses.mit;
80   };