# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0

{ pkgs, ... }:
with pkgs;
with pkgs.python3Packages;
(buildPythonPackage rec {
  pname = "hg-git";
  version = "0.9.0a1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1lhb813zljki3q10bx3n9d7c075s6ahhak5d3a1m6gaxmy6gzj5y";
  };

  doCheck = false;

  propagatedBuildInputs = [ dulwich ];

  meta = with lib; {
    description = "Push and pull from a Git server using Mercurial";
    homepage = "http://hg-git.github.com/";
    license = licenses.gpl2;
  };
})