From f7d172f97c1a9eaaf624976a961cd775cb41d7d5 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Sun, 1 Mar 2026 00:10:21 +0100 Subject: [PATCH] python3Packages.character-encoding-utils: fix build Requires switch to uv-build, and the tests are only available on GitHub not PyPi --- .../character-encoding-utils/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/character-encoding-utils/default.nix b/pkgs/development/python-modules/character-encoding-utils/default.nix index ff423f185c5c..a32b2f8159d4 100644 --- a/pkgs/development/python-modules/character-encoding-utils/default.nix +++ b/pkgs/development/python-modules/character-encoding-utils/default.nix @@ -1,10 +1,10 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pytestCheckHook, nix-update-script, - hatchling, + uv-build, }: buildPythonPackage rec { @@ -12,13 +12,14 @@ buildPythonPackage rec { version = "0.0.12"; pyproject = true; - src = fetchPypi { - pname = "character_encoding_utils"; - inherit version; - hash = "sha256-sOXdpO7c2EpbNbJK1WIYx/Xb5UGIMW8daw154V/NpU0="; + src = fetchFromGitHub { + owner = "TakWolf"; + repo = "character-encoding-utils"; + tag = version; + hash = "sha256-4WaVvr6/d/oePtmwpGJ/D6tv10V/ok9iN4BrqGk97f0="; }; - build-system = [ hatchling ]; + build-system = [ uv-build ]; nativeCheckInputs = [ pytestCheckHook ];