From 1a1de35b5cc46783a9728579261d940ae425ef9a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 2 Oct 2025 08:52:36 +0200 Subject: [PATCH] python313Packages.fastcache: modernize --- .../python-modules/fastcache/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/fastcache/default.nix b/pkgs/development/python-modules/fastcache/default.nix index ac411b4c0625..2607c8bc70f7 100644 --- a/pkgs/development/python-modules/fastcache/default.nix +++ b/pkgs/development/python-modules/fastcache/default.nix @@ -3,24 +3,30 @@ buildPythonPackage, fetchPypi, pytest, + setuptools, }: buildPythonPackage rec { pname = "fastcache"; version = "1.1.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "0avqpswfmw5b08xx3ib6zchc5bis390fn1v74vg7nnrkf1pb3qbd"; + hash = "sha256-beGxbnAzW3veJmcH60AaOq7CIPtmxdE7Aqvw6ri+eCs="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ pytest ]; + pythonImportsCheck = [ "fastcache" ]; + meta = with lib; { - description = "C implementation of Python3 lru_cache for Python 2 and 3"; + description = "C implementation of Python3 lru_cache"; homepage = "https://github.com/pbrady/fastcache"; + changelog = "https://github.com/pbrady/fastcache/blob/v${version}/CHANGELOG"; license = licenses.mit; - maintainers = [ maintainers.bhipple ]; + maintainers = with maintainers; [ bhipple ]; }; }