depot/third_party/nixpkgs/pkgs/development/python-modules/repoze-lru/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

43 lines
926 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "repoze-lru";
version = "0.7";
pyproject = true;
src = fetchPypi {
pname = "repoze.lru";
inherit version;
hash = "sha256-BCmnXhk4Dk7VDAaU4mrIgZtOp4Ue4fx1g8hXLbgK/3c=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "repoze/lru/tests.py" ];
disabledTests = [
# time sensitive tests
"test_different_timeouts"
"test_renew_timeout"
];
pythonImportsCheck = [ "repoze.lru" ];
pythonNamespaces = [ "repoze" ];
meta = with lib; {
description = "Tiny LRU cache implementation and decorator";
homepage = "http://www.repoze.org/";
changelog = "https://github.com/repoze/repoze.lru/blob/${version}/CHANGES.rst";
license = licenses.bsd0;
maintainers = with maintainers; [ domenkozar ];
};
}