Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-i18n / default.nix
blob1ae07dfbec6d8efae5021f18ab2eb4e6b5f825d5
1 { lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, pyyaml }:
3 buildPythonPackage rec {
4   pname = "python-i18n";
5   version = "0.3.9";
6   format = "setuptools";
8   src = fetchFromGitHub {
9     owner = "danhper";
10     repo = "python-i18n";
11     rev = "v${version}";
12     sha256 = "6FahoHZqaOWYGaT9RqLARCm2kLfUIlYuauB6+0eX7jA=";
13   };
15   # Replace use of deprecated assertRaisesRegexp
16   postPatch = ''
17     substituteInPlace i18n/tests/loader_tests.py \
18       --replace-fail assertRaisesRegexp assertRaisesRegex
19   '';
21   nativeCheckInputs = [ pytestCheckHook pyyaml ];
22   pytestFlagsArray = [ "i18n/tests/run_tests.py" ];
23   pythonImportsCheck = [ "i18n" ];
25   meta = with lib; {
26     description = "Easy to use i18n library";
27     homepage = "https://github.com/danhper/python-i18n";
28     license = with licenses; [ mit ];
29     maintainers = with maintainers; [ emilytrau ];
30   };