nixpkgs/pkgs/development/python-modules/restview/default.nix
Fabian Affolter a31265c0df python312Packages.restview: refactor
- update build-system
- update license
- relax readme-renderer
- update disabled
2024-11-22 09:48:45 +01:00

55 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
docutils,
fetchPypi,
packaging,
pygments,
pytestCheckHook,
pythonOlder,
readme-renderer,
setuptools,
}:
buildPythonPackage rec {
pname = "restview";
version = "3.0.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-i011oL7Xa2e0Vu9wEfTrbJilVsn4N2Qt8iAscxL8zBo=";
};
pythonRelaxDeps = [ "readme-renderer" ];
build-system = [ setuptools ];
dependencies = [
docutils
readme-renderer
packaging
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "restview" ];
disabledTests = [
# Tests are comparing output
"rest_to_html"
];
meta = with lib; {
description = "ReStructuredText viewer";
homepage = "https://mg.pov.lt/restview/";
changelog = "https://github.com/mgedmin/restview/blob/${version}/CHANGES.rst";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ koral ];
mainProgram = "restview";
};
}