depot/third_party/nixpkgs/pkgs/development/python-modules/pyphen/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

42 lines
784 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyphen";
version = "0.16.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-LABrPd8HLJVxq5dgbZqzwmqS6s7UwNWf0dJpiPMI9BM=";
};
nativeBuildInputs = [ flit ];
preCheck = ''
sed -i '/addopts/d' pyproject.toml
'';
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pyphen" ];
meta = with lib; {
description = "Module to hyphenate text";
homepage = "https://github.com/Kozea/Pyphen";
changelog = "https://github.com/Kozea/Pyphen/releases/tag/${version}";
license = with licenses; [
gpl2
lgpl21
mpl20
];
};
}