treewide: refactor git python package definitions

+31 -40
+7 -10
pkgs/by-name/gi/git-archive-all/package.nix
··· 1 { 2 lib, 3 - buildPythonApplication, 4 fetchFromGitHub, 5 git, 6 - pytestCheckHook, 7 - pytest-cov-stub, 8 - pytest-mock, 9 }: 10 11 - buildPythonApplication rec { 12 pname = "git-archive-all"; 13 version = "1.23.1"; 14 format = "setuptools"; ··· 16 src = fetchFromGitHub { 17 owner = "Kentzo"; 18 repo = "git-archive-all"; 19 - rev = version; 20 hash = "sha256-fIPjggOx+CEorj1bazz8s81ZdppkTL0OlA5tRqCYZyc="; 21 }; 22 ··· 40 git 41 ]; 42 43 - checkInputs = [ 44 pytestCheckHook 45 pytest-cov-stub 46 pytest-mock ··· 52 export HOME="$(mktemp -d)" 53 ''; 54 55 - meta = with lib; { 56 description = "Archive a repository with all its submodules"; 57 longDescription = '' 58 A python script wrapper for git-archive that archives a git superproject 59 and its submodules, if it has any. Takes into account .gitattributes 60 ''; 61 homepage = "https://github.com/Kentzo/git-archive-all"; 62 - license = licenses.mit; 63 - maintainers = with maintainers; [ fgaz ]; 64 mainProgram = "git-archive-all"; 65 }; 66 }
··· 1 { 2 lib, 3 + python3Packages, 4 fetchFromGitHub, 5 git, 6 }: 7 8 + python3Packages.buildPythonApplication rec { 9 pname = "git-archive-all"; 10 version = "1.23.1"; 11 format = "setuptools"; ··· 13 src = fetchFromGitHub { 14 owner = "Kentzo"; 15 repo = "git-archive-all"; 16 + tag = version; 17 hash = "sha256-fIPjggOx+CEorj1bazz8s81ZdppkTL0OlA5tRqCYZyc="; 18 }; 19 ··· 37 git 38 ]; 39 40 + checkInputs = with python3Packages; [ 41 pytestCheckHook 42 pytest-cov-stub 43 pytest-mock ··· 49 export HOME="$(mktemp -d)" 50 ''; 51 52 + meta = { 53 description = "Archive a repository with all its submodules"; 54 longDescription = '' 55 A python script wrapper for git-archive that archives a git superproject 56 and its submodules, if it has any. Takes into account .gitattributes 57 ''; 58 homepage = "https://github.com/Kentzo/git-archive-all"; 59 + license = lib.licenses.mit; 60 + maintainers = with lib.maintainers; [ fgaz ]; 61 mainProgram = "git-archive-all"; 62 }; 63 }
+5 -5
pkgs/by-name/gi/git-imerge/package.nix
··· 1 { 2 lib, 3 - buildPythonApplication, 4 fetchPypi, 5 installShellFiles, 6 }: 7 8 - buildPythonApplication rec { 9 pname = "git-imerge"; 10 version = "1.2.0"; 11 format = "setuptools"; ··· 21 installShellCompletion --bash completions/git-imerge 22 ''; 23 24 - meta = with lib; { 25 homepage = "https://github.com/mhagger/git-imerge"; 26 description = "Perform a merge between two branches incrementally"; 27 - license = licenses.gpl2Plus; 28 - maintainers = [ ]; 29 mainProgram = "git-imerge"; 30 }; 31 }
··· 1 { 2 lib, 3 + python3Packages, 4 fetchPypi, 5 installShellFiles, 6 }: 7 8 + python3Packages.buildPythonApplication rec { 9 pname = "git-imerge"; 10 version = "1.2.0"; 11 format = "setuptools"; ··· 21 installShellCompletion --bash completions/git-imerge 22 ''; 23 24 + meta = { 25 homepage = "https://github.com/mhagger/git-imerge"; 26 description = "Perform a merge between two branches incrementally"; 27 + license = lib.licenses.gpl2Plus; 28 + maintainers = with lib.maintainers; [ ]; 29 mainProgram = "git-imerge"; 30 }; 31 }
+3 -3
pkgs/by-name/gi/git-publish/package.nix
··· 6 fetchFromGitHub, 7 installShellFiles, 8 }: 9 - stdenv.mkDerivation rec { 10 pname = "git-publish"; 11 version = "1.8.2"; 12 13 src = fetchFromGitHub { 14 owner = "stefanha"; 15 repo = "git-publish"; 16 - rev = "v${version}"; 17 hash = "sha256-jjpbr+ZqG4U8/z0PurnXR+IUKQkG3QB8YqhDkH8uu2Y="; 18 }; 19 ··· 40 homepage = "https://github.com/stefanha/git-publish"; 41 mainProgram = "git-publish"; 42 }; 43 - }
··· 6 fetchFromGitHub, 7 installShellFiles, 8 }: 9 + stdenv.mkDerivation (finalAttrs: { 10 pname = "git-publish"; 11 version = "1.8.2"; 12 13 src = fetchFromGitHub { 14 owner = "stefanha"; 15 repo = "git-publish"; 16 + tag = "v${finalAttrs.version}"; 17 hash = "sha256-jjpbr+ZqG4U8/z0PurnXR+IUKQkG3QB8YqhDkH8uu2Y="; 18 }; 19 ··· 40 homepage = "https://github.com/stefanha/git-publish"; 41 mainProgram = "git-publish"; 42 }; 43 + })
+8 -11
pkgs/by-name/gi/git-repo-updater/package.nix
··· 1 { 2 lib, 3 - buildPythonApplication, 4 - hatchling, 5 - colorama, 6 fetchPypi, 7 - gitpython, 8 }: 9 10 - buildPythonApplication rec { 11 pname = "gitup"; 12 version = "0.5.2"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 - sha256 = "sha256-51DWPJ9JOMrRdWGaiiL4qzo4VFFeT1rG5yyI6Ej+ZRw="; 18 }; 19 20 - build-system = [ hatchling ]; 21 - propagatedBuildInputs = [ 22 colorama 23 gitpython 24 ]; ··· 26 # no tests 27 doCheck = false; 28 29 - meta = with lib; { 30 description = "Easily update multiple Git repositories at once"; 31 homepage = "https://github.com/earwig/git-repo-updater"; 32 - license = licenses.mit; 33 - maintainers = with maintainers; [ 34 bdesham 35 artturin 36 ];
··· 1 { 2 lib, 3 + python3Packages, 4 fetchPypi, 5 }: 6 7 + python3Packages.buildPythonApplication rec { 8 pname = "gitup"; 9 version = "0.5.2"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 + hash = "sha256-51DWPJ9JOMrRdWGaiiL4qzo4VFFeT1rG5yyI6Ej+ZRw="; 15 }; 16 17 + build-system = with python3Packages; [ hatchling ]; 18 + dependencies = with python3Packages; [ 19 colorama 20 gitpython 21 ]; ··· 23 # no tests 24 doCheck = false; 25 26 + meta = { 27 description = "Easily update multiple Git repositories at once"; 28 homepage = "https://github.com/earwig/git-repo-updater"; 29 + license = lib.licenses.mit; 30 + maintainers = with lib.maintainers; [ 31 bdesham 32 artturin 33 ];
+8 -11
pkgs/by-name/gi/git-review/package.nix
··· 1 { 2 lib, 3 - buildPythonApplication, 4 fetchgit, 5 - pbr, 6 - requests, 7 - setuptools, 8 gitUpdater, 9 }: 10 11 - buildPythonApplication rec { 12 pname = "git-review"; 13 version = "2.5.0"; 14 format = "setuptools"; 15 16 - # Manually set version because prb wants to get it from the git 17 # upstream repository (and we are installing from tarball instead) 18 PBR_VERSION = version; 19 ··· 29 "man" 30 ]; 31 32 - nativeBuildInputs = [ 33 pbr 34 ]; 35 36 - propagatedBuildInputs = [ 37 requests 38 setuptools # implicit dependency, used to get package version through pkg_resources 39 ]; ··· 47 48 passthru.updateScript = gitUpdater { }; 49 50 - meta = with lib; { 51 description = "Tool to submit code to Gerrit"; 52 homepage = "https://opendev.org/opendev/git-review"; 53 changelog = "https://docs.opendev.org/opendev/git-review/latest/releasenotes.html#relnotes-${version}"; 54 - license = licenses.asl20; 55 - maintainers = with maintainers; [ kira-bruneau ]; 56 mainProgram = "git-review"; 57 }; 58 }
··· 1 { 2 lib, 3 + python3Packages, 4 fetchgit, 5 gitUpdater, 6 }: 7 8 + python3Packages.buildPythonApplication rec { 9 pname = "git-review"; 10 version = "2.5.0"; 11 format = "setuptools"; 12 13 + # Manually set version because pbr wants to get it from the git 14 # upstream repository (and we are installing from tarball instead) 15 PBR_VERSION = version; 16 ··· 26 "man" 27 ]; 28 29 + nativeBuildInputs = with python3Packages; [ 30 pbr 31 ]; 32 33 + dependencies = with python3Packages; [ 34 requests 35 setuptools # implicit dependency, used to get package version through pkg_resources 36 ]; ··· 44 45 passthru.updateScript = gitUpdater { }; 46 47 + meta = { 48 description = "Tool to submit code to Gerrit"; 49 homepage = "https://opendev.org/opendev/git-review"; 50 changelog = "https://docs.opendev.org/opendev/git-review/latest/releasenotes.html#relnotes-${version}"; 51 + license = lib.licenses.asl20; 52 + maintainers = with lib.maintainers; [ kira-bruneau ]; 53 mainProgram = "git-review"; 54 }; 55 }