about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hg-git
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-10-24 17:30:07 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-10-25 13:46:56 -0400
commit412d5729429c8413dc26f9eea2dd2e8e21002ba1 (patch)
tree454712990e7f8647302ef47b119f0e56708138ec /pkgs/development/python-modules/hg-git
parent3c3998ee91f35705241f1f4df892a62a3bf92af5 (diff)
python3Packages.hg-git: init at 0.10.2
Diffstat (limited to 'pkgs/development/python-modules/hg-git')
-rw-r--r--pkgs/development/python-modules/hg-git/0.8.nix36
-rw-r--r--pkgs/development/python-modules/hg-git/default.nix22
2 files changed, 42 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/hg-git/0.8.nix b/pkgs/development/python-modules/hg-git/0.8.nix
new file mode 100644
index 0000000000000..b3bfdf708244f
--- /dev/null
+++ b/pkgs/development/python-modules/hg-git/0.8.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, dulwich
+, isPy3k
+, fetchpatch
+}:
+
+buildPythonPackage rec {
+  pname = "hg-git";
+  version = "0.8.12";
+  disabled = isPy3k;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "13hbm0ki6s88r6p65ibvrbxnskinzdz0m9gsshb8s571p91ymfjn";
+  };
+
+  propagatedBuildInputs = [ dulwich ];
+
+  # Needs patch to work with Mercurial 4.8
+  # https://foss.heptapod.net/mercurial/hg-git/-/issues/264
+  patches = [
+    (fetchpatch {
+      url = "https://foss.heptapod.net/mercurial/hg-git/-/commit/186b37af1ff61e8141e9eea5c75a03b3c82f1ab9.diff";
+      sha256 = "sha256-KS6fUJOVzCYX/r5sdRXuFDKtlgxz80bGDFb71ISnRgc=";
+    })
+  ];
+
+  meta = with lib; {
+    description = "Push and pull from a Git server using Mercurial";
+    homepage = "https://hg-git.github.io/";
+    maintainers = with maintainers; [ koral ];
+    license = licenses.gpl2Only;
+  };
+}
diff --git a/pkgs/development/python-modules/hg-git/default.nix b/pkgs/development/python-modules/hg-git/default.nix
index 1d8e1ec1e29fa..69756083e5d8c 100644
--- a/pkgs/development/python-modules/hg-git/default.nix
+++ b/pkgs/development/python-modules/hg-git/default.nix
@@ -2,35 +2,25 @@
 , buildPythonPackage
 , fetchPypi
 , dulwich
-, isPy3k
-, fetchpatch
+, mercurial
 }:
 
 buildPythonPackage rec {
   pname = "hg-git";
-  version = "0.8.12";
-  disabled = isPy3k;
+  version = "0.10.2";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "13hbm0ki6s88r6p65ibvrbxnskinzdz0m9gsshb8s571p91ymfjn";
+    sha256 = "aae1c47328bb7f928778712654c3d5f100445190e2891f175dac66d743fdb2e8";
   };
 
-  propagatedBuildInputs = [ dulwich ];
-
-  # 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";
-    };
+  propagatedBuildInputs = [ dulwich mercurial ];
 
   meta = with lib; {
     description = "Push and pull from a Git server using Mercurial";
-    homepage = "http://hg-git.github.com/";
+    homepage = "https://hg-git.github.io/";
     maintainers = with maintainers; [ koral ];
-    license = licenses.gpl2;
+    license = licenses.gpl2Only;
   };
 
 }