depot/third_party/nixpkgs/pkgs/development/python-modules/pyphen/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

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 ];
};
}