e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
48 lines
939 B
Nix
48 lines
939 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 = "A 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 ];
|
|
};
|
|
}
|