From 96dcbc7d83e2ead48360311acc0921bfd5a3d0e4 Mon Sep 17 00:00:00 2001 From: koral Date: Sat, 27 Sep 2014 00:24:27 +0200 Subject: [PATCH] hg-git: 0.3.1 -> 0.6.1, and its dependency dulwich: 0.8.7 -> 0.9.7 --- pkgs/top-level/python-packages.nix | 31 +++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 665486502d6b..07bbc6d40d75 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3267,40 +3267,41 @@ let dulwich = buildPythonPackage rec { - name = "dulwich-0.8.7"; - disabled = isPy3k || isPyPy; + name = "dulwich-${version}"; + version = "0.9.7"; src = fetchurl { - url = "http://samba.org/~jelmer/dulwich/${name}.tar.gz"; - sha256 = "041qp5v2x8fbwkmws6hwwiny74lavkz723dj8gwbm40b2383d8vv"; + url = "https://pypi.python.org/packages/source/d/dulwich/${name}.tar.gz"; + sha256 = "1wq083g9b1xsk89kb0wwpi4mxy63x6760vn9x5sk1fx36h27prqj"; }; - buildPhase = "make build"; + # For some reason "python setup.py test" doesn't work + doCheck = false; - # For some reason "python setup.py test" doesn't work with Python 2.6. - # pretty sure that is about import behaviour. - doCheck = python.majorVersion != "2.6"; - - meta = { + meta = with stdenv.lib; { description = "Simple Python implementation of the Git file formats and protocols."; homepage = http://samba.org/~jelmer/dulwich/; + license = licenses.gpl2Plus; + maintainers = [ maintainers.koral ]; }; }; - hggit = buildPythonPackage rec { - name = "hg-git-0.3.1"; + hg-git = buildPythonPackage rec { + name = "hg-git-${version}"; + version = "0.6.1"; src = fetchurl { url = "http://pypi.python.org/packages/source/h/hg-git/${name}.tar.gz"; - md5 = "4b15867a07abb0be985177581ce64cee"; + sha256 = "136kz4w377ldcjdg865azi8aym0xnxzxl3rycnflgay26ar1309s"; }; - propagatedBuildInputs = [ dulwich ]; + propagatedBuildInputs = [ pkgs.mercurial dulwich ]; - meta = { + meta = with stdenv.lib; { description = "Push and pull from a Git server using Mercurial."; homepage = http://hg-git.github.com/; + maintainers = [ maintainers.koral ]; }; };