1{ lib
2, buildPythonPackage
3, fetchPypi
4, flit
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pyphen";
10 version = "0.13.0";
11 format = "pyproject";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "sha256-Boc86//WWo/KfCDA49wDJlXH7o3g9VIgXK07V0JlwpM=";
16 };
17
18 nativeBuildInputs = [
19 flit
20 ];
21
22 preCheck = ''
23 sed -i '/addopts/d' pyproject.toml
24 '';
25
26 checkInputs = [
27 pytestCheckHook
28 ];
29
30 meta = with lib; {
31 description = "Pure Python module to hyphenate text";
32 homepage = "https://github.com/Kozea/Pyphen";
33 license = with licenses; [gpl2 lgpl21 mpl20];
34 maintainers = with maintainers; [ rvl ];
35 };
36}