Merge pull request #293929 from emilytrau/python-i18n-zhf
python3Packages.python-i18n: replace use of deprecated assertRaisesRegexp
This commit is contained in:
commit
b196712441
@ -7,14 +7,20 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "danhper";
|
owner = "danhper";
|
||||||
repo = pname;
|
repo = "python-i18n";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "6FahoHZqaOWYGaT9RqLARCm2kLfUIlYuauB6+0eX7jA=";
|
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" ];
|
pytestFlagsArray = [ "i18n/tests/run_tests.py" ];
|
||||||
|
pythonImportsCheck = [ "i18n" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Easy to use i18n library";
|
description = "Easy to use i18n library";
|
||||||
|
Loading…
Reference in New Issue
Block a user