depot/third_party/nixpkgs/pkgs/development/python-modules/restview/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

51 lines
923 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, docutils
, readme_renderer
, packaging
, pygments
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "restview";
version = "3.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-jBoXHBWdRtFdVWn3cCGCiIOhIdb5uvdY1kH8HlSwWuU=";
};
propagatedBuildInputs = [
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.gpl3Only;
maintainers = with maintainers; [ koral ];
};
}