2021-07-09 20:52:36 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-xprocess
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2019-05-30 14:24:57 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cachelib";
|
2021-08-14 14:38:00 +01:00
|
|
|
version = "0.3.0";
|
2021-07-09 20:52:36 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2019-05-30 14:24:57 +01:00
|
|
|
|
2021-07-09 20:52:36 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pallets";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-14 14:38:00 +01:00
|
|
|
sha256 = "sha256-ssyHNlrSrG8YHRS131jJtmgl6eMTNdet1Hf0nTxL8sM=";
|
2019-05-30 14:24:57 +01:00
|
|
|
};
|
|
|
|
|
2021-07-09 20:52:36 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest-xprocess
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cachelib" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-30 14:24:57 +01:00
|
|
|
homepage = "https://github.com/pallets/cachelib";
|
|
|
|
description = "Collection of cache libraries in the same API interface";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|