19 buildPythonPackage rec {
24 disabled = pythonOlder "3.8";
26 src = fetchFromGitHub {
27 owner = "python-cachier";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-siighT6hMicN+F/LIXfUAPQ2kkRiyk7CtjqmyC/qCFg=";
33 pythonRemoveDeps = [ "setuptools" ];
42 # not listed as dep, but needed to run main script entrypoint
58 "test_mongetter_default_param"
59 "test_stale_after_applies_dynamically"
60 "test_next_time_applies_dynamically"
63 "test_ignore_self_in_methods"
64 "test_mongo_index_creation"
67 # don't test formatting
71 "test_being_calc_next_time"
72 "test_pickle_being_calculated"
76 export HOME="$(mktemp -d)"
79 pythonImportsCheck = [ "cachier" ];
82 homepage = "https://github.com/python-cachier/cachier";
83 changelog = "https://github.com/python-cachier/cachier/releases/tag/v${version}";
84 description = "Persistent, stale-free, local and cross-machine caching for functions";
85 mainProgram = "cachier";
86 maintainers = with lib.maintainers; [ pbsds ];
87 license = lib.licenses.mit;