Unverified Commit b1967124 authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

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

python3Packages.python-i18n: replace use of deprecated assertRaisesRegexp
parents 70c4b42b 31515815
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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";