2024-06-05 15:53:02 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
buildPythonPackage,
|
|
|
|
|
fetchPypi,
|
|
|
|
|
mercurial,
|
|
|
|
|
nose,
|
2021-12-06 16:07:01 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
|
2024-06-05 15:53:02 +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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
|
description = "Library with a fast, convenient interface to Mercurial. It uses Mercurial’s command server for communication with hg";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
homepage = "https://www.mercurial-scm.org/wiki/PythonHglibs";
|
|
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
|
maintainers = [ ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
};
|
|
|
|
|
}
|