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