Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / help2man / default.nix
blob38cff88b4a12c618496bc3950b0b4c5f30deaac7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , jinja2
6 , setuptools-scm
7 , shtab
8 , tomli
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "help2man";
14   version = "0.0.9";
15   pyproject = true;
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "Freed-Wu";
21     repo = "help2man";
22     rev = version;
23     hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI=";
24   };
26   env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
28   nativeBuildInputs = [
29     jinja2
30     setuptools-scm
31     shtab
32     tomli
33   ];
35   propagatedBuildInputs = [
36     jinja2
37   ];
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "help2man" ];
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   };