1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 typing-extensions,
6 heapdict,
7 pytestCheckHook,
8 pythonOlder,
9}:
10buildPythonPackage rec {
11 pname = "cachey";
12 version = "0.2.1";
13 format = "setuptools";
14 disabled = pythonOlder "3.6";
15 src = fetchFromGitHub {
16 owner = "dask";
17 repo = "cachey";
18 rev = version;
19 hash = "sha256-5USmuufrrWtmgibpfkjo9NtgN30hdl8plJfythmxM4s=";
20 };
21 propagatedBuildInputs = [
22 typing-extensions
23 heapdict
24 ];
25 nativeCheckInputs = [ pytestCheckHook ];
26 pythonImportsCheck = [ "cachey" ];
27 meta = with lib; {
28 description = "Caching based on computation time and storage space";
29 homepage = "https://github.com/dask/cachey/";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ SomeoneSerge ];
32 };
33}