1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, dulwich 6, mercurial 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "hg-git"; 12 version = "1.0.2"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-WoQOh6cKFcnB4GGWvD7VlV53LxHpsYA+iMDJ9VrwNBY="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 propagatedBuildInputs = [ 27 dulwich 28 mercurial 29 ]; 30 31 pythonImportsCheck = [ 32 "hggit" 33 ]; 34 35 meta = with lib; { 36 description = "Push and pull from a Git server using Mercurial"; 37 homepage = "https://hg-git.github.io/"; 38 license = licenses.gpl2Only; 39 maintainers = with maintainers; [ koral ]; 40 }; 41}