1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5 git,
6 git-lfs,
7}:
8
9python3Packages.buildPythonApplication rec {
10 pname = "github-backup";
11 version = "0.50.2";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "josegonzalez";
16 repo = "python-github-backup";
17 tag = version;
18 hash = "sha256-MUPQa1L3HmAMn1pZSzQk8VKpcz2nDGuWZB8pVi7CyYs=";
19 };
20
21 build-system = with python3Packages; [
22 setuptools
23 ];
24
25 makeWrapperArgs = [
26 "--prefix"
27 "PATH"
28 ":"
29 (lib.makeBinPath [
30 git
31 git-lfs
32 ])
33 ];
34
35 # has no unit tests
36 doCheck = false;
37
38 meta = with lib; {
39 description = "Backup a github user or organization";
40 homepage = "https://github.com/josegonzalez/python-github-backup";
41 changelog = "https://github.com/josegonzalez/python-github-backup/blob/${src.tag}/CHANGES.rst";
42 license = licenses.mit;
43 maintainers = with maintainers; [ dotlambda ];
44 mainProgram = "github-backup";
45 };
46}