3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #285216 from fabaff/levenshtein-bump

python311Packages.levenshtein: 0.23.0 -> 0.24.0
This commit is contained in:
Fabian Affolter 2024-02-11 11:25:41 +01:00 committed by GitHub
commit 763fc93142
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 6 deletions

View file

@ -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`
};

View file

@ -47,6 +47,16 @@ buildPythonPackage rec {
"docx"
];
disabledTests = [
# https://github.com/python-openxml/python-docx/issues/1302
"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/";