depot/third_party/nixpkgs/pkgs/development/python-modules/pyphen/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

43 lines
770 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyphen";
version = "0.14.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-WWyLO+HBpwQRul9lF9nM/jCDx1iuK5SkXycHNG2OZvo=";
};
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];
};
}