2017-09-16 04:46:27 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, nose, mercurial, isPy3k }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-hglib";
|
2018-06-12 16:47:01 +00:00
|
|
|
version = "2.6.1";
|
2017-09-16 04:46:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-06-12 16:47:01 +00:00
|
|
|
sha256 = "7c1fa0cb4d332dd6ec8409b04787ceba4623e97fb378656f7cab0b996c6ca3b2";
|
2017-09-16 04:46:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
buildInputs = [ mercurial ];
|
|
|
|
|
|
|
|
checkPhase = ''python test.py'';
|
|
|
|
doCheck = if isPy3k then false else true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mercurial Python library";
|
|
|
|
homepage = "http://selenic.com/repo/python-hglib";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dfoxfranke ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|