1{ lib 2, buildPythonPackage 3, fetchPypi 4, flit 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "pyphen"; 11 version = "0.14.0"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-WWyLO+HBpwQRul9lF9nM/jCDx1iuK5SkXycHNG2OZvo="; 19 }; 20 21 nativeBuildInputs = [ 22 flit 23 ]; 24 25 preCheck = '' 26 sed -i '/addopts/d' pyproject.toml 27 ''; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "pyphen" 35 ]; 36 37 meta = with lib; { 38 description = "Module to hyphenate text"; 39 homepage = "https://github.com/Kozea/Pyphen"; 40 changelog = "https://github.com/Kozea/Pyphen/releases/tag/${version}"; 41 license = with licenses; [gpl2 lgpl21 mpl20]; 42 maintainers = with maintainers; [ rvl ]; 43 }; 44}