Merge pull request #293929 from emilytrau/python-i18n-zhf

python3Packages.python-i18n: replace use of deprecated assertRaisesRegexp
This commit is contained in:
Leona Maroni 2024-04-19 08:49:15 +02:00 committed by GitHub
commit b196712441
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,14 +7,20 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "danhper";
repo = pname;
repo = "python-i18n";
rev = "v${version}";
sha256 = "6FahoHZqaOWYGaT9RqLARCm2kLfUIlYuauB6+0eX7jA=";
};
nativeCheckInputs = [ pytestCheckHook pyyaml ];
# Replace use of deprecated assertRaisesRegexp
postPatch = ''
substituteInPlace i18n/tests/loader_tests.py \
--replace-fail assertRaisesRegexp assertRaisesRegex
'';
nativeCheckInputs = [ pytestCheckHook pyyaml ];
pytestFlagsArray = [ "i18n/tests/run_tests.py" ];
pythonImportsCheck = [ "i18n" ];
meta = with lib; {
description = "Easy to use i18n library";