From b524610f5aa7bc0a13eac9182e28ddaebbe04949 Mon Sep 17 00:00:00 2001 From: Harinn Date: Sat, 6 Jun 2026 09:35:08 +0700 Subject: [PATCH] python3Packages.cachy: modernize --- pkgs/development/python-modules/cachy/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/cachy/default.nix b/pkgs/development/python-modules/cachy/default.nix index 393214ff3184..fbf8d9bddcdf 100644 --- a/pkgs/development/python-modules/cachy/default.nix +++ b/pkgs/development/python-modules/cachy/default.nix @@ -8,14 +8,16 @@ msgpack, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "cachy"; version = "0.3.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; - sha256 = "186581f4ceb42a0bbe040c407da73c14092379b1e4c0e327fdb72ae4a9b269b1"; + inherit (finalAttrs) pname version; + hash = "sha256-GGWB9M60Kgu+BAxAfac8FAkjebHkwOMn/bcq5KmyabE="; }; build-system = [ setuptools ]; @@ -31,10 +33,12 @@ buildPythonPackage rec { # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665 doCheck = false; + pythonImportsCheck = [ "cachy" ]; + meta = { homepage = "https://github.com/sdispater/cachy"; description = "Cachy provides a simple yet effective caching library"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jakewaksbaum ]; }; -} +})