1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, jinja2 6, setuptools-scm 7, shtab 8, tomli 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "help2man"; 14 version = "0.0.9"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.9"; 18 19 src = fetchFromGitHub { 20 owner = "Freed-Wu"; 21 repo = "help2man"; 22 rev = version; 23 hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI="; 24 }; 25 26 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 27 28 nativeBuildInputs = [ 29 jinja2 30 setuptools-scm 31 shtab 32 tomli 33 ]; 34 35 propagatedBuildInputs = [ 36 jinja2 37 ]; 38 39 nativeCheckInputs = [ 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "help2man" ]; 44 45 meta = with lib; { 46 description = "Convert --help and --version to man page"; 47 homepage = "https://github.com/Freed-Wu/help2man"; 48 license = licenses.gpl3Only; 49 maintainers = with maintainers; [ natsukium ]; 50 mainProgram = "help2man"; 51 }; 52}