nixpkgs/pkgs/development/python-modules/help2man/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

51 lines
883 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, jinja2
, setuptools-scm
, shtab
, tomli
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "help2man";
version = "0.0.9";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Freed-Wu";
repo = "help2man";
rev = version;
hash = "sha256-BIDn+LQzBtDHUtFvIRL3NMXNouO3cMLibuYBoFtCUxI=";
};
nativeBuildInputs = [
jinja2
setuptools-scm
shtab
tomli
];
propagatedBuildInputs = [
jinja2
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "help2man" ];
meta = with lib; {
description = "Convert --help and --version to man page";
homepage = "https://github.com/Freed-Wu/help2man";
license = licenses.gpl3Only;
maintainers = with maintainers; [ natsukium ];
mainProgram = "help2man";
};
}