1{ stdenv, buildPythonPackage, fetchPypi, nose, mercurial, isPy3k }:
2
3buildPythonPackage rec {
4 pname = "python-hglib";
5 version = "2.6.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "7c1fa0cb4d332dd6ec8409b04787ceba4623e97fb378656f7cab0b996c6ca3b2";
10 };
11
12 checkInputs = [ nose ];
13 buildInputs = [ mercurial ];
14
15 checkPhase = ''python test.py'';
16 doCheck = if isPy3k then false else true;
17
18 meta = with stdenv.lib; {
19 description = "Mercurial Python library";
20 homepage = "http://selenic.com/repo/python-hglib";
21 license = licenses.mit;
22 maintainers = with maintainers; [ dfoxfranke ];
23 platforms = platforms.all;
24 };
25}