1{ lib, fetchFromGitHub, python3Packages
2, asciidoc, xmlto, docbook_xsl, docbook_xml_dtd_45, libxslt, libxml2
3}:
4
5python3Packages.buildPythonApplication rec {
6 pname = "git-remote-hg";
7 version = "1.0.3.2";
8
9 src = fetchFromGitHub {
10 owner = "mnauw";
11 repo = "git-remote-hg";
12 rev = "v${version}";
13 sha256 = "0b5lfbrcrvzpz380817md00lbgy5yl4y76vs3vm0bpm5wmr7c027";
14 };
15
16 nativeBuildInputs = [
17 asciidoc xmlto docbook_xsl docbook_xml_dtd_45 libxslt libxml2
18 ];
19 propagatedBuildInputs = with python3Packages; [ mercurial ];
20
21 postInstall = ''
22 make install-doc prefix=$out
23 '';
24
25 meta = with lib; {
26 homepage = "https://github.com/mnauw/git-remote-hg";
27 description = "Semi-official Mercurial bridge from Git project";
28 license = licenses.gpl2;
29 maintainers = with maintainers; [ qyliss ];
30 platforms = platforms.unix;
31 };
32}