
If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
gitMinimal,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "git-aggregator";
|
|
version = "4.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "acsone";
|
|
repo = "git-aggregator";
|
|
tag = version;
|
|
hash = "sha256-sZYh3CN15WTCQ59W24ERJdP48EJt571cbkswLQ3JL2g=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
argcomplete
|
|
colorama
|
|
gitMinimal
|
|
kaptan
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
gitMinimal
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME="$(mktemp -d)"
|
|
git config --global user.name John
|
|
git config --global user.email john@localhost
|
|
git config --global init.defaultBranch master
|
|
git config --global pull.rebase false
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Manage the aggregation of git branches from different remotes to build a consolidated one";
|
|
homepage = "https://github.com/acsone/git-aggregator";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ bbjubjub ];
|
|
mainProgram = "gitaggregate";
|
|
};
|
|
}
|