depot/third_party/nixpkgs/pkgs/development/python-modules/hg-git/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

41 lines
712 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, dulwich
, mercurial
, pythonOlder
}:
buildPythonPackage rec {
pname = "hg-git";
version = "1.0.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-WoQOh6cKFcnB4GGWvD7VlV53LxHpsYA+iMDJ9VrwNBY=";
};
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 ];
};
}