depot/third_party/nixpkgs/pkgs/development/python-modules/cachetools/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

36 lines
696 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cachetools";
version = "5.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tkem";
repo = pname;
rev = "v${version}";
hash = "sha256-DheHTD62f1ZxoiS0y0/CzDMHvKGmEiEUAX6oaqTpB78=";
};
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 ];
};
}