2021-12-06 16:07:01 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, buildPythonPackage
|
|
|
|
|
, fetchPypi
|
|
|
|
|
, mercurial
|
|
|
|
|
, nose
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "python-hglib";
|
|
|
|
|
version = "2.6.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
format = "setuptools";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
|
hash = "sha256-sYvR7VPJDuV9VxTWata7crZOkw1K7KmDCJLAi7KNpgg=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
|
nativeCheckInputs = [ mercurial nose ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
|
export HGTMP=$(mktemp -d)
|
|
|
|
|
export HGUSER=test
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
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;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
maintainers = [];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
};
|
|
|
|
|
}
|