depot/third_party/nixpkgs/pkgs/development/python-modules/cachetools/default.nix
Default email 6064764516 Project import generated by Copybara.
GitOrigin-RevId: 2cf9db0e3d45b9d00f16f2836cb1297bcadc475e
2021-10-14 08:43:12 +08:00

33 lines
667 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cachetools";
version = "4.2.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "tkem";
repo = pname;
rev = "v${version}";
sha256 = "sha256-9CHXvb+Nn3N2oWHwNbqKguzDO/q+4EnMZ50+E+MWS/A=";
};
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "cachetools" ];
meta = with lib; {
description = "Extensible memoizing collections and decorators";
homepage = "https://github.com/tkem/cachetools";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}