1{ lib
2, buildPythonPackage
3, fetchPypi
4, dulwich
5, mercurial
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "hg-git";
11 version = "1.0.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-P3Ng9bD16AX7DJac/Y168GSWLTIAD3I1aLblYIDQiyk=";
19 };
20
21 propagatedBuildInputs = [
22 dulwich
23 mercurial
24 ];
25
26 pythonImportsCheck = [
27 "hggit"
28 ];
29
30 meta = with lib; {
31 description = "Push and pull from a Git server using Mercurial";
32 homepage = "https://hg-git.github.io/";
33 license = licenses.gpl2Only;
34 maintainers = with maintainers; [ koral ];
35 };
36}