From 078074a82a2527e356f79f048abf1a312ef56cdd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 31 Jan 2024 07:43:17 +0100 Subject: [PATCH 1/3] python311Packages.levenshtein: 0.23.0 -> 0.24.0 Diff: https://github.com/maxbachmann/Levenshtein/compare/refs/tags/v0.23.0...v0.24.0 Changelog: https://github.com/maxbachmann/Levenshtein/blob/refs/tags/v0.24.0/HISTORY.md --- .../python-modules/levenshtein/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/levenshtein/default.nix b/pkgs/development/python-modules/levenshtein/default.nix index 2a297571b3f1..38bd559a8568 100644 --- a/pkgs/development/python-modules/levenshtein/default.nix +++ b/pkgs/development/python-modules/levenshtein/default.nix @@ -1,11 +1,11 @@ { lib , stdenv , buildPythonPackage -, fetchFromGitHub -, pythonOlder , cmake , cython_3 +, fetchFromGitHub , pytestCheckHook +, pythonOlder , rapidfuzz , rapidfuzz-cpp , scikit-build @@ -13,16 +13,16 @@ buildPythonPackage rec { pname = "levenshtein"; - version = "0.23.0"; - format = "pyproject"; + version = "0.24.0"; + pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "maxbachmann"; repo = "Levenshtein"; rev = "refs/tags/v${version}"; - hash = "sha256-xQimslz/G6nf2uYerLSaRAK5gvmfDmWTzEx/fh+nqg0="; + hash = "sha256-Vf12MBfy4IoTsXSYdKBMjxyMCaba21fiG0g1bPmrUmI="; fetchSubmodules = true; ## for vendored `rapidfuzz-cpp` }; From 72205a7859ad3a272f0f79d43b3cc8123724fa9e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 31 Jan 2024 10:01:27 +0100 Subject: [PATCH 2/3] python311Packages.python-docx: disable failing test --- pkgs/development/python-modules/python-docx/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/python-docx/default.nix b/pkgs/development/python-modules/python-docx/default.nix index 37a10bdd542c..75c8c02debd3 100644 --- a/pkgs/development/python-modules/python-docx/default.nix +++ b/pkgs/development/python-modules/python-docx/default.nix @@ -47,6 +47,11 @@ buildPythonPackage rec { "docx" ]; + disabledTests = [ + # https://github.com/python-openxml/python-docx/issues/1302 + "it_accepts_unicode_providing_there_is_no_encoding_declaration" + ]; + meta = with lib; { description = "Create and update Microsoft Word .docx files"; homepage = "https://python-docx.readthedocs.io/"; From 3a56a943bfec2e5a37b44cfcb182036ea3d6b157 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 31 Jan 2024 11:28:14 +0100 Subject: [PATCH 3/3] python312Packages.python-docx: suppress DeprecationWarning --- pkgs/development/python-modules/python-docx/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/python-docx/default.nix b/pkgs/development/python-modules/python-docx/default.nix index 75c8c02debd3..6a5c01d216da 100644 --- a/pkgs/development/python-modules/python-docx/default.nix +++ b/pkgs/development/python-modules/python-docx/default.nix @@ -52,6 +52,11 @@ buildPythonPackage rec { "it_accepts_unicode_providing_there_is_no_encoding_declaration" ]; + pytestFlagsArray = [ + "-W" + "ignore::DeprecationWarning" + ]; + meta = with lib; { description = "Create and update Microsoft Word .docx files"; homepage = "https://python-docx.readthedocs.io/";