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