2021-11-17 17:28:27 +00:00
|
|
|
|
{ lib
|
2021-11-19 15:25:21 +00:00
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, mercurial
|
|
|
|
|
, nose
|
2021-11-17 17:28:27 +00:00
|
|
|
|
}:
|
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
|
buildPythonPackage rec {
|
2021-11-17 17:28:27 +00:00
|
|
|
|
pname = "python-hglib";
|
2021-11-19 15:25:21 +00:00
|
|
|
|
version = "2.6.2";
|
2021-11-17 17:28:27 +00:00
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
|
src = fetchPypi {
|
2021-11-17 17:28:27 +00:00
|
|
|
|
inherit pname version;
|
2021-11-19 15:25:21 +00:00
|
|
|
|
sha256 = "sha256-sYvR7VPJDuV9VxTWata7crZOkw1K7KmDCJLAi7KNpgg=";
|
2021-11-17 17:28:27 +00:00
|
|
|
|
};
|
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
|
checkInputs = [ mercurial nose ];
|
2021-11-17 17:28:27 +00:00
|
|
|
|
|
2021-11-19 15:25:21 +00:00
|
|
|
|
preCheck = ''
|
|
|
|
|
export HGTMP=$(mktemp -d)
|
|
|
|
|
export HGUSER=test
|
|
|
|
|
'';
|
2021-11-17 17:28:27 +00:00
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "hglib" ];
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "Library with a fast, convenient interface to Mercurial. It uses Mercurial’s command server for communication with hg.";
|
|
|
|
|
homepage = "https://www.mercurial-scm.org/wiki/PythonHglibs";
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = [ maintainers.kvark ];
|
|
|
|
|
};
|
|
|
|
|
}
|