Files
nixpkgs/pkgs/development/python-modules/hg-git/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
776 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
dulwich,
mercurial,
pythonOlder,
}:
buildPythonPackage rec {
pname = "hg-git";
version = "1.2.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "hg_git";
inherit version;
hash = "sha256-Pr+rNkqBubVlsQCyqd5mdr8D357FzSd3Kuz5EWeez8M=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
dulwich
mercurial
];
pythonRelaxDeps = [ "dulwich" ];
pythonImportsCheck = [ "hggit" ];
meta = {
description = "Push and pull from a Git server using Mercurial";
homepage = "https://hg-git.github.io/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ koral ];
};
}