nixpkgs/pkgs/development/python-modules/cachetools/default.nix
2021-11-10 10:28:00 +01:00

36 lines
698 B
Nix

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