From 8998eaed90c5eedbcb55191195191a251fcc51cb Mon Sep 17 00:00:00 2001 From: Harinn Date: Sun, 7 Jun 2026 22:56:04 +0700 Subject: [PATCH] python3Packages.colorlover: modernize --- .../python-modules/colorlover/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/colorlover/default.nix b/pkgs/development/python-modules/colorlover/default.nix index 1c9339010b62..bbb654cf4dea 100644 --- a/pkgs/development/python-modules/colorlover/default.nix +++ b/pkgs/development/python-modules/colorlover/default.nix @@ -5,14 +5,16 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "colorlover"; version = "0.3.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; - sha256 = "b8fb7246ab46e1f5e6715649453c1762e245a515de5ff2d2b4aab7a6e67fa4e2"; + inherit (finalAttrs) pname version; + hash = "sha256-uPtyRqtG4fXmcVZJRTwXYuJFpRXeX/LStKq3puZ/pOI="; }; build-system = [ setuptools ]; @@ -20,10 +22,12 @@ buildPythonPackage rec { # no tests included in distributed archive doCheck = false; + pythonImportsCheck = [ "colorlover" ]; + meta = { homepage = "https://github.com/jackparmer/colorlover"; description = "Color scales in Python for humans"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})