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