diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2016-07-31 10:42:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-31 10:42:24 +0200 |
commit | 5088f24dedd7a8905807ff7f5462020f2e5d8d78 (patch) | |
tree | f08bddf2e0d5755d64afe9e8c34814fc4cc9f5d8 /pkgs | |
parent | b714fdb5746f57c26a41ced7b8641ac298456fa0 (diff) | |
parent | a6984a39655341c1aff18dad0254d59189b02ef0 (diff) | |
download | nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.tar nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.tar.gz nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.tar.bz2 nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.tar.lz nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.tar.xz nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.tar.zst nixpkgs-5088f24dedd7a8905807ff7f5462020f2e5d8d78.zip |
Merge pull request #15751 from peterhoeg/git-up
git-up: init at 1.4.0
Diffstat (limited to 'pkgs')
-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 b4e45ff4727..76fd4596e54 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}"; |