From 9a5a35786806e3f496014674153335191cd28348 Mon Sep 17 00:00:00 2001 From: Gerhard Schwanzer Date: Tue, 23 Jun 2026 19:32:09 +0200 Subject: [PATCH] python3Packages.pylru: 1.2.1 -> 1.3.1 Update the package metadata for the upstream license change to MIT. Supersedes #502857. Assisted-by: pi coding agent / Mika (OpenAI GPT-5.5) --- .../python-modules/pylru/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pylru/default.nix b/pkgs/development/python-modules/pylru/default.nix index 65eaa41565a2..44e2d687c3c3 100644 --- a/pkgs/development/python-modules/pylru/default.nix +++ b/pkgs/development/python-modules/pylru/default.nix @@ -2,29 +2,37 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, }: buildPythonPackage rec { pname = "pylru"; - version = "1.2.1"; - format = "setuptools"; + version = "1.3.1"; + pyproject = true; src = fetchFromGitHub { owner = "jlhutch"; repo = "pylru"; rev = "v${version}"; - hash = "sha256-dTYiD+/zt0ZSP+sefYyeD87To1nRXyoFodlBg8pm1YE="; + hash = "sha256-3qycUYmnLGiuNsrBOCL/QiRkrPVikaRqVBmQFURDGKs="; }; - # Check with the next release if tests are ready - doCheck = false; + build-system = [ setuptools ]; + + checkPhase = '' + runHook preCheck + + python test.py + + runHook postCheck + ''; pythonImportsCheck = [ "pylru" ]; meta = { description = "Least recently used (LRU) cache implementation"; homepage = "https://github.com/jlhutch/pylru"; - license = lib.licenses.gpl2Only; + license = lib.licenses.mit; maintainers = [ ]; }; }