Files
nixpkgs/pkgs/development/python-modules/pyphen/default.nix
2025-01-24 12:05:02 +00:00

39 lines
723 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyphen";
version = "0.17.2";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-9gZHqcmzDsbFmRAJevgrxd0tNldrkY5EFI2LB+87SqM=";
};
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
];
};
}