diff options
author | Peter Hoeg <peter@speartail.com> | 2016-04-18 23:21:02 +0800 |
---|---|---|
committer | Peter Hoeg <peter@speartail.com> | 2016-07-30 18:00:54 +0800 |
commit | a6984a39655341c1aff18dad0254d59189b02ef0 (patch) | |
tree | 09cebb21922400f5e24c1580ded68947ce3c71ea /pkgs/top-level | |
parent | 40b838b94d906793d160fa17f817157fc684cdbe (diff) | |
download | nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.tar nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.tar.gz nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.tar.bz2 nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.tar.lz nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.tar.xz nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.tar.zst nixlib-a6984a39655341c1aff18dad0254d59189b02ef0.zip |
git-up: init at 1.4.0
Thanks again to @fridh for feedback!
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6ae1896dd2b5..a402d52020b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6516,6 +6516,37 @@ in modules // { }; + git-up = buildPythonPackage rec { + version = "1.4.0"; + name = "git-up-${version}"; + + src = pkgs.fetchFromGitHub { + owner = "msiemens"; + repo = "PyGitUp"; + rev = "v${version}"; + sha256 = "1g7sxiqg6vxx2jlgg8pg9fqsk1xgvm80d7mcpw8i3mw7r835q4bi"; + }; + + buildInputs = with self; [ pkgs.git nose ]; + propagatedBuildInputs = with self; [ colorama docopt GitPython six termcolor ]; + + # git fails to run as it cannot detect the email address, so we set it + # $HOME is by default not a valid dir, so we have to set that too + # https://github.com/NixOS/nixpkgs/issues/12591 + preCheck = '' + export HOME=$TMPDIR + git config --global user.email "nobody@example.com" + git config --global user.name "Nobody" + ''; + + meta = { + homepage = http://github.com/msiemens/PyGitUp; + description = "A git pull replacement that rebases all local branches when pulling."; + license = licenses.mit; + maintainers = with maintainers; [ peterhoeg ]; + }; + }; + GitPython = buildPythonPackage rec { version = "2.0.2"; name = "GitPython-${version}"; |