From 1146e332865701e5e85c0660356025d0a5ca70e2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 19 May 2024 05:39:58 +0000 Subject: [PATCH 1/3] python311Packages.character-encoding-utils: 0.0.7 -> 0.0.8 --- .../python-modules/character-encoding-utils/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/character-encoding-utils/default.nix b/pkgs/development/python-modules/character-encoding-utils/default.nix index 85e418ca7957..0aab3223ee3a 100644 --- a/pkgs/development/python-modules/character-encoding-utils/default.nix +++ b/pkgs/development/python-modules/character-encoding-utils/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "character-encoding-utils"; - version = "0.0.7"; + version = "0.0.8"; disabled = pythonOlder "3.11"; src = fetchPypi { pname = "character_encoding_utils"; inherit version; - hash = "sha256-cUggyNz5xphDF+7dSrx3vr3v3R8ISryHj9accMJfDbg="; + hash = "sha256-UXX4L/x7fP37ZEFDCPc0KRNyx47xvwY0Jz+lfxzUulg="; }; format = "pyproject"; From 7049481c0878d4600ccceed2adbf24dba004ebb0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 May 2024 10:36:15 +0200 Subject: [PATCH 2/3] python312Packages.character-encoding-utils: refactor --- .../character-encoding-utils/default.nix | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/character-encoding-utils/default.nix b/pkgs/development/python-modules/character-encoding-utils/default.nix index 0aab3223ee3a..b1c42d3f0f2b 100644 --- a/pkgs/development/python-modules/character-encoding-utils/default.nix +++ b/pkgs/development/python-modules/character-encoding-utils/default.nix @@ -1,16 +1,16 @@ { lib , buildPythonPackage , fetchPypi -, pytestCheckHook -, pythonOlder -, nix-update-script , hatch-vcs , hatchling +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "character-encoding-utils"; version = "0.0.8"; + pyproject = true; disabled = pythonOlder "3.11"; @@ -20,21 +20,22 @@ buildPythonPackage rec { hash = "sha256-UXX4L/x7fP37ZEFDCPc0KRNyx47xvwY0Jz+lfxzUulg="; }; - format = "pyproject"; - - nativeBuildInputs = [ + build-system = [ hatch-vcs hatchling ]; - checkInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - passthru.updateScript = nix-update-script { }; + pythonImportsCheck = [ + "character_encoding_utils" + ]; meta = { - homepage = "https://github.com/TakWolf/character-encoding-utils"; description = "Some character encoding utils"; - platforms = lib.platforms.all; + homepage = "https://github.com/TakWolf/character-encoding-utils"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ h7x4 ]; }; From a14d0471a77eb15a83ee55d8e9f8332951cdc4a2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 May 2024 10:37:00 +0200 Subject: [PATCH 3/3] python312Packages.character-encoding-utils: format with nixfmt --- .../character-encoding-utils/default.nix | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/character-encoding-utils/default.nix b/pkgs/development/python-modules/character-encoding-utils/default.nix index b1c42d3f0f2b..a677d8999e37 100644 --- a/pkgs/development/python-modules/character-encoding-utils/default.nix +++ b/pkgs/development/python-modules/character-encoding-utils/default.nix @@ -1,10 +1,11 @@ -{ lib -, buildPythonPackage -, fetchPypi -, hatch-vcs -, hatchling -, pytestCheckHook -, pythonOlder +{ + lib, + buildPythonPackage, + fetchPypi, + hatch-vcs, + hatchling, + pytestCheckHook, + pythonOlder, }: buildPythonPackage rec { @@ -25,13 +26,9 @@ buildPythonPackage rec { hatchling ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "character_encoding_utils" - ]; + pythonImportsCheck = [ "character_encoding_utils" ]; meta = { description = "Some character encoding utils";