linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / restview / default.nix
blobb2fc2d9beae75f4add58d30dda397dc3a4f2fea3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , docutils
6 , readme_renderer
7 , packaging
8 , pygments
9 , mock
10 , pytestCheckHook
13 buildPythonPackage rec {
14   pname = "restview";
15   version = "2.9.2";
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "1p1jgdvc04ws8kga3r0vrq3m0b52qw3clwyydl96a13wb3mrf03r";
20   };
22   patches = [
23     (fetchpatch {
24       url = "https://github.com/mgedmin/restview/commit/a1ded30a87c65f3ce59a18497a7fc5099317c2be.patch";
25       sha256 = "1ax7pih456a3nbj8qrrq7hqigbyag4ihzpn6bm0z4y74d0r3v8a5";
26     })
27   ];
29   propagatedBuildInputs = [ docutils readme_renderer packaging pygments ];
30   checkInputs = [ mock pytestCheckHook ];
32   meta = {
33     description = "ReStructuredText viewer";
34     homepage = "https://mg.pov.lt/restview/";
35     license = lib.licenses.gpl3Only;
36     maintainers = with lib.maintainers; [ koral ];
37   };