2021-01-24 00:29:22 +00:00
|
|
|
{ lib
|
2018-10-16 19:12:38 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, dulwich
|
|
|
|
, isPy3k
|
2018-11-15 13:57:08 +00:00
|
|
|
, fetchpatch
|
2018-10-16 19:12:38 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hg-git";
|
2018-11-15 13:57:08 +00:00
|
|
|
version = "0.8.12";
|
2018-10-16 19:12:38 +01:00
|
|
|
disabled = isPy3k;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-15 13:57:08 +00:00
|
|
|
sha256 = "13hbm0ki6s88r6p65ibvrbxnskinzdz0m9gsshb8s571p91ymfjn";
|
2018-10-16 19:12:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ dulwich ];
|
|
|
|
|
2018-11-15 13:57:08 +00:00
|
|
|
# Needs patch to work with Mercurial 4.8
|
|
|
|
# https://bitbucket.org/durin42/hg-git/issues/264/unexpected-keyword-argument-createopts-hg
|
|
|
|
patches =
|
|
|
|
fetchpatch {
|
|
|
|
url = "https://bitbucket.org/rsalmaso/hg-git/commits/a778506fd4be0bf1afa75755f6ee9260fa234a0f/raw";
|
|
|
|
sha256 = "12r4qzbc5xcqwv0kvf8g4wjji7n45421zkbf6i75vyi4nl6n4j15";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 19:12:38 +01:00
|
|
|
description = "Push and pull from a Git server using Mercurial";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://hg-git.github.com/";
|
2018-10-16 19:12:38 +01:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.gpl2;
|
2018-10-16 19:12:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|