2021-07-09 21:52:36 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-xprocess
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2019-05-30 15:24:57 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachelib";
|
2022-06-27 05:29:24 +02:00
|
|
|
version = "0.9.0";
|
2021-07-09 21:52:36 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-05-30 15:24:57 +02:00
|
|
|
|
2021-07-09 21:52:36 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pallets";
|
|
|
|
repo = pname;
|
2022-05-15 03:54:21 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2022-06-27 05:29:24 +02:00
|
|
|
sha256 = "sha256-LO1VdirKWXIAy3U8oRtnFI58qO+yn6Vm5bZdCjdgKwo=";
|
2019-05-30 15:24:57 +02:00
|
|
|
};
|
|
|
|
|
2021-07-09 21:52:36 +02:00
|
|
|
checkInputs = [
|
|
|
|
pytest-xprocess
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cachelib" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-30 15:24:57 +02:00
|
|
|
homepage = "https://github.com/pallets/cachelib";
|
|
|
|
description = "Collection of cache libraries in the same API interface";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|