fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
709 B
Nix
38 lines
709 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
dulwich,
|
|
mercurial,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hg-git";
|
|
version = "1.1.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-r04Q6zbt8VM1jYkoGOdJZqKPPxXy4jC1X1d9nJ+fEWY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
dulwich
|
|
mercurial
|
|
];
|
|
|
|
pythonImportsCheck = [ "hggit" ];
|
|
|
|
meta = with lib; {
|
|
description = "Push and pull from a Git server using Mercurial";
|
|
homepage = "https://hg-git.github.io/";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ koral ];
|
|
};
|
|
}
|