2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools-scm,
|
|
|
|
dulwich,
|
|
|
|
mercurial,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hg-git";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.1.2";
|
|
|
|
pyproject = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "hg_git";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-BZzcElZa0pMBSGXSiSB+d+YFhJMM5PAdT2Txq5qLZCU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [
|
2022-04-15 01:41:22 +00:00
|
|
|
dulwich
|
|
|
|
mercurial
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "hggit" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Push and pull from a Git server using Mercurial";
|
2021-10-28 06:52:43 +00:00
|
|
|
homepage = "https://hg-git.github.io/";
|
|
|
|
license = licenses.gpl2Only;
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with maintainers; [ koral ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|