1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 atpublic, 7 pdm-pep517, 8 pytestCheckHook, 9 sybil, 10}: 11 12buildPythonPackage rec { 13 pname = "flufl-i18n"; 14 version = "4.1.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 pname = "flufl.i18n"; 21 inherit version; 22 hash = "sha256-wKz6aggkJ9YBJ+o75XjC4Ddnn+Zi9hlYDnliwTc7DNs="; 23 }; 24 25 postPatch = '' 26 substituteInPlace pyproject.toml \ 27 --replace "--cov=flufl --cov-report=term --cov-report=xml" "" 28 ''; 29 30 nativeBuildInputs = [ pdm-pep517 ]; 31 32 propagatedBuildInputs = [ atpublic ]; 33 34 pythonImportsCheck = [ "flufl.i18n" ]; 35 36 nativeCheckInputs = [ 37 pytestCheckHook 38 sybil 39 ]; 40 41 pythonNamespaces = [ "flufl" ]; 42 43 meta = with lib; { 44 description = "High level API for internationalizing Python libraries and applications"; 45 homepage = "https://gitlab.com/warsaw/flufl.i18n"; 46 changelog = "https://gitlab.com/warsaw/flufl.i18n/-/raw/${version}/docs/NEWS.rst"; 47 license = licenses.asl20; 48 maintainers = [ ]; 49 }; 50}