diff --git a/pkgs/development/python-modules/async-lru/default.nix b/pkgs/development/python-modules/async-lru/default.nix index fcf7ef5207f4..e86fa73e88e4 100644 --- a/pkgs/development/python-modules/async-lru/default.nix +++ b/pkgs/development/python-modules/async-lru/default.nix @@ -3,40 +3,41 @@ buildPythonPackage, pythonOlder, fetchFromGitHub, + setuptools, typing-extensions, pytestCheckHook, pytest-asyncio, + pytest-cov-stub, + pytest-timeout, }: buildPythonPackage rec { pname = "async-lru"; - version = "2.0.4"; - - disabled = pythonOlder "3.8"; - - format = "setuptools"; + version = "2.0.5"; + pyproject = true; src = fetchFromGitHub { owner = "aio-libs"; repo = "async-lru"; tag = "v${version}"; - hash = "sha256-S2sOkgtS+YdMtVP7UHD3+oR8Fem8roLhhgVVfh33PcM="; + hash = "sha256-FJ1q6W9IYs0OSMZc+bI4v22hOAAWAv2OW3BAqixm8Hs="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ typing-extensions ]; + build-system = [ setuptools ]; - postPatch = '' - sed -i -e '/^addopts/d' -e '/^filterwarnings/,+2d' setup.cfg - ''; + dependencies = lib.optionals (pythonOlder "3.11") [ typing-extensions ]; nativeCheckInputs = [ pytestCheckHook pytest-asyncio + pytest-cov-stub + pytest-timeout ]; pythonImportsCheck = [ "async_lru" ]; meta = with lib; { + changelog = "https://github.com/aio-libs/async-lru/releases/tag/${src.tag}"; description = "Simple lru cache for asyncio"; homepage = "https://github.com/wikibusiness/async_lru"; license = licenses.mit;