Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 53 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, oslotest 5, pbr 6, testscenarios 7, stestr 8}: 9 10buildPythonPackage rec { 11 pname = "oslo-i18n"; 12 version = "6.1.0"; 13 14 src = fetchPypi { 15 pname = "oslo.i18n"; 16 inherit version; 17 hash = "sha256-4rgp8gW/HrYgR1bMNAJ9EZSUti0nH+7oYL+BbKegfq0="; 18 }; 19 20 postPatch = '' 21 # only a small portion of the listed packages are actually needed for running the tests 22 # so instead of removing them one by one remove everything 23 rm test-requirements.txt 24 ''; 25 26 nativeBuildInputs = [ pbr ]; 27 28 nativeCheckInputs = [ 29 oslotest 30 stestr 31 testscenarios 32 ]; 33 34 checkPhase = '' 35 runHook preCheck 36 37 stestr run -e <(echo " 38 # test counts warnings which no longer matches in python 3.11 39 oslo_i18n.tests.test_message.MessageTestCase.test_translate_message_bad_translation 40 ") 41 42 runHook postCheck 43 ''; 44 45 pythonImportsCheck = [ "oslo_i18n" ]; 46 47 meta = with lib; { 48 description = "Oslo i18n library"; 49 homepage = "https://github.com/openstack/oslo.i18n"; 50 license = licenses.asl20; 51 maintainers = teams.openstack.members; 52 }; 53}