1{
2 lib,
3 fetchFromGitHub,
4 python3Packages,
5 asciidoc,
6 xmlto,
7 docbook_xsl,
8 docbook_xml_dtd_45,
9 libxslt,
10 libxml2,
11}:
12
13python3Packages.buildPythonApplication rec {
14 pname = "git-remote-hg";
15 version = "1.0.4";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "mnauw";
20 repo = "git-remote-hg";
21 tag = "v${version}";
22 hash = "sha256-QlXi5LQAYMNCF7ZjQdJxwcjp3K51dGkHVnNw0pgArzg=";
23 };
24
25 nativeBuildInputs = [
26 asciidoc
27 xmlto
28 docbook_xsl
29 docbook_xml_dtd_45
30 libxslt
31 libxml2
32 ];
33
34 build-system = with python3Packages; [ setuptools ];
35
36 dependencies = with python3Packages; [ mercurial ];
37
38 postInstall = ''
39 make install-doc prefix=$out
40 '';
41
42 meta = {
43 homepage = "https://github.com/mnauw/git-remote-hg";
44 description = "Semi-official Mercurial bridge from Git project";
45 license = lib.licenses.gpl2;
46 maintainers = [ ];
47 platforms = lib.platforms.unix;
48 };
49}