depot/third_party/nixpkgs/pkgs/development/python-modules/pyphen/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

44 lines
809 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyphen";
version = "0.13.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hH9XoEOlhAjyRnCuAYT/bt+1/VcxdDIIIowCjdxRRDg=";
};
nativeBuildInputs = [
flit
];
preCheck = ''
sed -i '/addopts/d' pyproject.toml
'';
checkInputs = [
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];
maintainers = with maintainers; [ rvl ];
};
}