nixpkgs/pkgs/development/python-modules/hg-git/default.nix
2024-12-05 10:00:50 +00:00

44 lines
742 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
dulwich,
mercurial,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hg-git";
version = "1.1.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "hg_git";
inherit version;
hash = "sha256-XF9vAtvUK5yRP4OxZv83/AA2jde5t7za3jqgyuXc5eU=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
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 ];
};
}