python311Packages.repoze-lru: refactor
This commit is contained in:
parent
97475a68f7
commit
a8bf17127a
@ -1,23 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "repoze-lru";
|
||||
version = "0.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "repoze.lru";
|
||||
inherit version;
|
||||
sha256 = "0429a75e19380e4ed50c0694e26ac8819b4ea7851ee1fc7583c8572db80aff77";
|
||||
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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user