depot/third_party/nixpkgs/pkgs/development/python-modules/pyphen/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

36 lines
670 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pyphen";
version = "0.12.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "b7d3dfc24b6f2178cdb2b1757ace0bd5d222de3e62c28d22ac578c5f22a13e9b";
};
nativeBuildInputs = [
flit
];
preCheck = ''
sed -i '/addopts/d' pyproject.toml
'';
checkInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Pure Python module to hyphenate text";
homepage = "https://github.com/Kozea/Pyphen";
license = with licenses; [gpl2 lgpl21 mpl20];
maintainers = with maintainers; [ rvl ];
};
}