From a597d3335aa51dd434c8c1735003c88624162b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 27 Oct 2024 09:23:42 -0700 Subject: [PATCH] python312Packages.ftfy: 6.2.3 -> 6.3.1 Diff: https://github.com/rspeer/python-ftfy/compare/refs/tags/v6.2.3...v6.3.1 Changelog: https://github.com/rspeer/python-ftfy/blob/refs/tags/v6.3.1/CHANGELOG.md --- .../python-modules/ftfy/default.nix | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/ftfy/default.nix b/pkgs/development/python-modules/ftfy/default.nix index d51041828a64..ec5aca9062a6 100644 --- a/pkgs/development/python-modules/ftfy/default.nix +++ b/pkgs/development/python-modules/ftfy/default.nix @@ -1,11 +1,11 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pythonOlder, # build-system - poetry-core, + hatchling, # dependencies wcwidth, @@ -17,17 +17,19 @@ buildPythonPackage rec { pname = "ftfy"; - version = "6.2.3"; + version = "6.3.1"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; - src = fetchPypi { - inherit pname version; - hash = "sha256-ebUFmI8p1XelipBpr+dVU6AqRuQt5gkcBmDNxngSutw="; + src = fetchFromGitHub { + owner = "rspeer"; + repo = "python-ftfy"; + rev = "refs/tags/v${version}"; + hash = "sha256-TmwDJeUDcF+uOB2X5tMmnf9liCI9rP6dYJVmJoaqszo="; }; - build-system = [ poetry-core ]; + build-system = [ hatchling ]; dependencies = [ wcwidth ]; @@ -42,12 +44,8 @@ buildPythonPackage rec { export PATH=$out/bin:$PATH ''; - disabledTestPaths = [ - # Calls poetry and fails to match output exactly - "tests/test_cli.py" - ]; - meta = with lib; { + changelog = "https://github.com/rspeer/python-ftfy/blob/${src.rev}/CHANGELOG.md"; description = "Given Unicode text, make its representation consistent and possibly less broken"; mainProgram = "ftfy"; homepage = "https://github.com/LuminosoInsight/python-ftfy";