summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-16 14:12:38 -0400
committerFrederik Rietdijk <fridh@fridh.nl>2018-10-17 07:46:59 +0200
commit99d1456df7df388595673b673664f994609a842c (patch)
tree1b071da8977c12975f66a4947c27679b9477fe87 /pkgs
parent4d25c10bff07bc39bf9eccd6933424d738d9834b (diff)
downloadnixlib-99d1456df7df388595673b673664f994609a842c.tar
nixlib-99d1456df7df388595673b673664f994609a842c.tar.gz
nixlib-99d1456df7df388595673b673664f994609a842c.tar.bz2
nixlib-99d1456df7df388595673b673664f994609a842c.tar.lz
nixlib-99d1456df7df388595673b673664f994609a842c.tar.xz
nixlib-99d1456df7df388595673b673664f994609a842c.tar.zst
nixlib-99d1456df7df388595673b673664f994609a842c.zip
pythonPackages.hg-git: refactor move to python-modules
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/hg-git/default.nix27
-rw-r--r--pkgs/top-level/python-packages.nix20
2 files changed, 28 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/hg-git/default.nix b/pkgs/development/python-modules/hg-git/default.nix
new file mode 100644
index 000000000000..2b32afc2f824
--- /dev/null
+++ b/pkgs/development/python-modules/hg-git/default.nix
@@ -0,0 +1,27 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, dulwich
+, isPy3k
+}:
+
+buildPythonPackage rec {
+  pname = "hg-git";
+  version = "0.8.11";
+  disabled = isPy3k;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "08kw1sj3sq1q1571hwkc51w20ks9ysmlg93pcnmd6gr66bz02dyn";
+  };
+
+  propagatedBuildInputs = [ dulwich ];
+
+  meta = with stdenv.lib; {
+    description = "Push and pull from a Git server using Mercurial";
+    homepage = http://hg-git.github.com/;
+    maintainers = with maintainers; [ koral ];
+    license = stdenv.lib.licenses.gpl2;
+  };
+
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 87f4c4a03f22..0660aec9a357 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2336,25 +2336,7 @@ in {
     inherit (pkgs) git glibcLocales;
   };
 
-  hg-git = buildPythonPackage rec {
-    name = "hg-git-${version}";
-    version = "0.8.11";
-    disabled = isPy3k;
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/h/hg-git/${name}.tar.gz";
-      sha256 = "08kw1sj3sq1q1571hwkc51w20ks9ysmlg93pcnmd6gr66bz02dyn";
-    };
-
-    propagatedBuildInputs = with self; [ dulwich ];
-
-    meta = {
-      description = "Push and pull from a Git server using Mercurial";
-      homepage = http://hg-git.github.com/;
-      maintainers = with maintainers; [ koral ];
-      license = stdenv.lib.licenses.gpl2;
-    };
-  };
+  hg-git = callPackage ../development/python-modules/hg-git { };
 
   dtopt = buildPythonPackage rec {
     name = "dtopt-0.1";