Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyphen / default.nix
blob15eb6342988fbb6f7c8220fec5121eaefa66f3de
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , flit
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "pyphen";
11   version = "0.14.0";
12   format = "pyproject";
14   disabled = pythonOlder "3.7";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-WWyLO+HBpwQRul9lF9nM/jCDx1iuK5SkXycHNG2OZvo=";
19   };
21   nativeBuildInputs = [
22     flit
23   ];
25   preCheck = ''
26     sed -i '/addopts/d' pyproject.toml
27   '';
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "pyphen"
35   ];
37   meta = with lib; {
38     description = "Module to hyphenate text";
39     homepage = "https://github.com/Kozea/Pyphen";
40     changelog = "https://github.com/Kozea/Pyphen/releases/tag/${version}";
41     license = with licenses; [gpl2 lgpl21 mpl20];
42   };