mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
45 lines
815 B
Nix
45 lines
815 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
|
|
'';
|
|
|
|
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];
|
|
maintainers = with maintainers; [ rvl ];
|
|
};
|
|
}
|