Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
python3Packages,
|
|
writableTmpDirAsHomeHook,
|
|
gitMinimal,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "git-up";
|
|
version = "2.3.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
pname = "git_up";
|
|
inherit version;
|
|
hash = "sha256-SncbnK6LxsleKRa/sSCm/8dsgPw/XJGvYfkcIeWYDy4=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"termcolor"
|
|
];
|
|
|
|
build-system = with python3Packages; [
|
|
poetry-core
|
|
];
|
|
|
|
# required in PATH for tool to work
|
|
propagatedBuildInputs = [ gitMinimal ];
|
|
|
|
dependencies = with python3Packages; [
|
|
colorama
|
|
gitpython
|
|
termcolor
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gitMinimal
|
|
python3Packages.pytest7CheckHook
|
|
writableTmpDirAsHomeHook
|
|
];
|
|
|
|
# git fails without email address
|
|
preCheck = ''
|
|
git config --global user.email "nobody@example.com"
|
|
git config --global user.name "Nobody"
|
|
'';
|
|
|
|
postInstall = ''
|
|
rm -r $out/${python3Packages.python.sitePackages}/PyGitUp/tests
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/msiemens/PyGitUp";
|
|
description = "Git pull replacement that rebases all local branches when pulling";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ peterhoeg ];
|
|
platforms = lib.platforms.all;
|
|
mainProgram = "git-up";
|
|
};
|
|
}
|