nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, python3
3, fetchPypi
4, git
5, git-lfs
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "github-backup";
10 version = "0.45.2";
11 pyproject = true;
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-wn2JRMLfqhhTREeYM+mcs68xlkRWKMlxKXToa83pu2g=";
16 };
17
18 nativeBuildInputs = with python3.pkgs; [
19 setuptools
20 ];
21
22 makeWrapperArgs = [
23 "--prefix" "PATH" ":" (lib.makeBinPath [ git git-lfs ])
24 ];
25
26 # has no unit tests
27 doCheck = false;
28
29 meta = with lib; {
30 description = "Backup a github user or organization";
31 homepage = "https://github.com/josegonzalez/python-github-backup";
32 changelog = "https://github.com/josegonzalez/python-github-backup/blob/${version}/CHANGES.rst";
33 license = licenses.mit;
34 maintainers = with maintainers; [ dotlambda ];
35 mainProgram = "github-backup";
36 };
37}