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 00000000000..2b32afc2f82 --- /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 87f4c4a03f2..0660aec9a35 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";