2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
|
|
|
, docutils
|
|
|
|
, readme_renderer
|
2020-06-15 15:56:04 +00:00
|
|
|
, packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
, pygments
|
|
|
|
, mock
|
2021-03-20 04:20:00 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restview";
|
2021-03-20 04:20:00 +00:00
|
|
|
version = "2.9.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-20 04:20:00 +00:00
|
|
|
sha256 = "1p1jgdvc04ws8kga3r0vrq3m0b52qw3clwyydl96a13wb3mrf03r";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2021-03-20 04:20:00 +00:00
|
|
|
url = "https://github.com/mgedmin/restview/commit/a1ded30a87c65f3ce59a18497a7fc5099317c2be.patch";
|
|
|
|
sha256 = "1ax7pih456a3nbj8qrrq7hqigbyag4ihzpn6bm0z4y74d0r3v8a5";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [ docutils readme_renderer packaging pygments ];
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ReStructuredText viewer";
|
|
|
|
homepage = "https://mg.pov.lt/restview/";
|
2021-03-20 04:20:00 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with lib.maintainers; [ koral ];
|
|
|
|
};
|
|
|
|
}
|