46 lines
955 B
Nix
46 lines
955 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
git,
|
|
git-lfs,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "github-backup";
|
|
version = "0.47.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "josegonzalez";
|
|
repo = "python-github-backup";
|
|
tag = version;
|
|
hash = "sha256-BnsPVSyQuoNH56M2ZwOyWGXjWI9sGS1S8vQzCQEqNcY=";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
makeWrapperArgs = [
|
|
"--prefix"
|
|
"PATH"
|
|
":"
|
|
(lib.makeBinPath [
|
|
git
|
|
git-lfs
|
|
])
|
|
];
|
|
|
|
# has no unit tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Backup a github user or organization";
|
|
homepage = "https://github.com/josegonzalez/python-github-backup";
|
|
changelog = "https://github.com/josegonzalez/python-github-backup/blob/${version}/CHANGES.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
mainProgram = "github-backup";
|
|
};
|
|
}
|