synix/pkgs/cppman/default.nix
sid 95a533c876
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s
initial commit
2026-02-23 20:34:35 +01:00

55 lines
984 B
Nix

{
lib,
python3,
fetchPypi,
groff,
}:
python3.pkgs.buildPythonApplication rec {
pname = "cppman";
version = "0.5.9";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-FaTkCrAltNzsWnOlDfJrfdrvfBSPyxl5QP/ySE+emQM=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = with python3.pkgs; [
beautifulsoup4
distutils
html5lib
lxml
six
soupsieve
typing-extensions
webencodings
];
postInstall = ''
wrapProgram $out/bin/cppman --prefix PATH : "${groff}/bin"
'';
pythonRelaxDeps = true;
pythonRemoveDeps = true; # for bs4
pythonImportsCheck = [
"cppman"
];
meta = {
description = "C++ 98/11/14/17/20 manual pages for Linux/MacOS";
homepage = "https://pypi.org/project/cppman";
license = with lib.licenses; [
gpl3Only
gpl2Only
];
maintainers = with lib.maintainers; [ ];
mainProgram = "cppman";
};
}