2021-03-20 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2021-03-20 04:20:00 +00:00
|
|
|
, git
|
|
|
|
, git-lfs
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "github-backup";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.45.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2021-03-20 04:20:00 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2021-03-20 04:20:00 +00:00
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-+dQVewMHSF0SnOKmgwc9pmqXAJGLjSqwS9YQHdvEmKo=";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
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";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/josegonzalez/python-github-backup/blob/${version}/CHANGES.rst";
|
2021-03-20 04:20:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "github-backup";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|