From 6d48522bc743d55d446328ce6a412d3edde4cfca Mon Sep 17 00:00:00 2001 From: Daniel Baker Date: Sat, 6 Dec 2025 12:06:43 -0800 Subject: [PATCH] python3Packages.coloraide: 5.1 -> 6.1 Switched to using the original source repository instead of PyPI per the Nixpkgs manual. Bump the version from 5.1 to 6.1. Added the requisite dependencies to run the tests. Updated the derivation metadata to reflect the new source. --- .../python-modules/coloraide/default.nix | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/coloraide/default.nix b/pkgs/development/python-modules/coloraide/default.nix index aeb0cf4f3283..556ccb3fc3cb 100644 --- a/pkgs/development/python-modules/coloraide/default.nix +++ b/pkgs/development/python-modules/coloraide/default.nix @@ -1,21 +1,24 @@ { - lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, hatchling, + lib, + pytestCheckHook, typing-extensions, }: let - pname = "coloraide"; - version = "5.1"; + version = "6.1"; in buildPythonPackage { - inherit pname version; + pname = "coloraide"; + inherit version; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-DfBmpjbb2EgZgfrEkCQNPtkGtANDx8AXErPfVC8rJ1A="; + src = fetchFromGitHub { + owner = "facelessuser"; + repo = "coloraide"; + tag = version; + hash = "sha256-hsuFouesw4B9rr17NCQVB6LyYUdNRm9Cj2Cqj+MdLkc="; }; build-system = [ @@ -30,9 +33,13 @@ buildPythonPackage { "coloraide" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + meta = { - description = "Color library for Python"; - homepage = "https://pypi.org/project/coloraide/"; + description = "Library to aid in using colors"; + homepage = "https://github.com/facelessuser/coloraide"; license = lib.licenses.mit; maintainers = [ lib.maintainers._9999years