b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
36 lines
657 B
Nix
36 lines
657 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flit
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyphen";
|
|
version = "0.13.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-Boc86//WWo/KfCDA49wDJlXH7o3g9VIgXK07V0JlwpM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit
|
|
];
|
|
|
|
preCheck = ''
|
|
sed -i '/addopts/d' pyproject.toml
|
|
'';
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pure Python module to hyphenate text";
|
|
homepage = "https://github.com/Kozea/Pyphen";
|
|
license = with licenses; [gpl2 lgpl21 mpl20];
|
|
maintainers = with maintainers; [ rvl ];
|
|
};
|
|
}
|