2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
docutils,
|
|
|
|
readme-renderer,
|
|
|
|
packaging,
|
|
|
|
pygments,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restview";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "3.0.1";
|
2022-01-03 16:56:52 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-jBoXHBWdRtFdVWn3cCGCiIOhIdb5uvdY1kH8HlSwWuU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docutils
|
2024-01-25 14:12:00 +00:00
|
|
|
readme-renderer
|
2022-01-03 16:56:52 +00:00
|
|
|
packaging
|
|
|
|
pygments
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "restview" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Tests are comparing output
|
|
|
|
"rest_to_html"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "ReStructuredText viewer";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "restview";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://mg.pov.lt/restview/";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/mgedmin/restview/blob/${version}/CHANGES.rst";
|
2022-09-09 14:08:57 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|