nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 36 lines 670 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, flit 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "pyphen"; 10 version = "0.12.0"; 11 format = "pyproject"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "b7d3dfc24b6f2178cdb2b1757ace0bd5d222de3e62c28d22ac578c5f22a13e9b"; 16 }; 17 18 nativeBuildInputs = [ 19 flit 20 ]; 21 22 preCheck = '' 23 sed -i '/addopts/d' pyproject.toml 24 ''; 25 26 checkInputs = [ 27 pytestCheckHook 28 ]; 29 30 meta = with lib; { 31 description = "Pure Python module to hyphenate text"; 32 homepage = "https://github.com/Kozea/Pyphen"; 33 license = with licenses; [gpl2 lgpl21 mpl20]; 34 maintainers = with maintainers; [ rvl ]; 35 }; 36}