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