linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / hg-git / default.nix
blob1d8e1ec1e29fa2dc0e467f4d34fedc2ae0668cb3
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , dulwich
5 , isPy3k
6 , fetchpatch
7 }:
9 buildPythonPackage rec {
10   pname = "hg-git";
11   version = "0.8.12";
12   disabled = isPy3k;
14   src = fetchPypi {
15     inherit pname version;
16     sha256 = "13hbm0ki6s88r6p65ibvrbxnskinzdz0m9gsshb8s571p91ymfjn";
17   };
19   propagatedBuildInputs = [ dulwich ];
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     };
29   meta = with 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 = licenses.gpl2;
34   };