2017-09-07 09:01:51 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-09-13 10:21:19 +01:00
|
|
|
, fetchpatch
|
2017-09-07 09:01:51 +01:00
|
|
|
, docutils
|
|
|
|
, readme_renderer
|
2020-06-08 20:23:52 +01:00
|
|
|
, packaging
|
2017-09-07 09:01:51 +01:00
|
|
|
, pygments
|
|
|
|
, mock
|
2021-03-23 21:24:20 +00:00
|
|
|
, pytestCheckHook
|
2017-09-07 09:01:51 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "restview";
|
2021-03-23 21:24:20 +00:00
|
|
|
version = "2.9.2";
|
2017-09-07 09:01:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-23 21:24:20 +00:00
|
|
|
sha256 = "1p1jgdvc04ws8kga3r0vrq3m0b52qw3clwyydl96a13wb3mrf03r";
|
2017-09-07 09:01:51 +01:00
|
|
|
};
|
|
|
|
|
2018-09-13 10:21:19 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2021-03-23 21:24:20 +00:00
|
|
|
url = "https://github.com/mgedmin/restview/commit/a1ded30a87c65f3ce59a18497a7fc5099317c2be.patch";
|
|
|
|
sha256 = "1ax7pih456a3nbj8qrrq7hqigbyag4ihzpn6bm0z4y74d0r3v8a5";
|
2018-09-13 10:21:19 +01:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-23 21:24:20 +00:00
|
|
|
propagatedBuildInputs = [ docutils readme_renderer packaging pygments ];
|
|
|
|
checkInputs = [ mock pytestCheckHook ];
|
2017-09-07 09:01:51 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "ReStructuredText viewer";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://mg.pov.lt/restview/";
|
2021-03-23 21:24:20 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2017-09-07 09:01:51 +01:00
|
|
|
maintainers = with lib.maintainers; [ koral ];
|
|
|
|
};
|
2018-06-27 21:12:57 +01:00
|
|
|
}
|