From bbb879169e16caa9b19f68ff0ae9cc546f5e3ac0 Mon Sep 17 00:00:00 2001 From: natsukium Date: Tue, 31 Dec 2024 00:23:14 +0900 Subject: [PATCH] python312Packages.async-cache: refactor --- .../python-modules/async-cache/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/async-cache/default.nix b/pkgs/development/python-modules/async-cache/default.nix index d54fb2d48c7a..b6cdfbf3edc7 100644 --- a/pkgs/development/python-modules/async-cache/default.nix +++ b/pkgs/development/python-modules/async-cache/default.nix @@ -2,11 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage { pname = "async-cache"; version = "1.1.1"; + pyproject = true; src = fetchFromGitHub { owner = "iamsinghrajat"; @@ -15,10 +18,16 @@ buildPythonPackage rec { hash = "sha256-AVSdtWPs1c8AE5PNOq+BdXzBXkI0aeFVzxxPl/ATyU0="; }; - meta = with lib; { + build-system = [ setuptools ]; + + pythonImportsCheck = [ "cache" ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + meta = { description = "Caching solution for asyncio"; homepage = "https://github.com/iamsinghrajat/async-cache"; - license = licenses.mit; - maintainers = [ maintainers.lukegb ]; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.lukegb ]; }; }