nixpkgs/pkgs/development/python-modules/pyphen/default.nix
2024-11-12 19:23:31 +09:00

39 lines
723 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyphen";
version = "0.17.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-HROs0c43o4TXYSlUrmx4AbtMUxbaDiuTeyEnunAqPaQ=";
};
build-system = [ flit-core ];
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
];
};
}