1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, dulwich
5, isPy3k
6, fetchpatch
7}:
8
9buildPythonPackage rec {
10 pname = "hg-git";
11 version = "0.8.12";
12 disabled = isPy3k;
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "13hbm0ki6s88r6p65ibvrbxnskinzdz0m9gsshb8s571p91ymfjn";
17 };
18
19 propagatedBuildInputs = [ dulwich ];
20
21 # Needs patch to work with Mercurial 4.8
22 # https://bitbucket.org/durin42/hg-git/issues/264/unexpected-keyword-argument-createopts-hg
23 patches =
24 fetchpatch {
25 url = "https://bitbucket.org/rsalmaso/hg-git/commits/a778506fd4be0bf1afa75755f6ee9260fa234a0f/raw";
26 sha256 = "12r4qzbc5xcqwv0kvf8g4wjji7n45421zkbf6i75vyi4nl6n4j15";
27 };
28
29 meta = with stdenv.lib; {
30 description = "Push and pull from a Git server using Mercurial";
31 homepage = "http://hg-git.github.com/";
32 maintainers = with maintainers; [ koral ];
33 license = stdenv.lib.licenses.gpl2;
34 };
35
36}