2017-01-06 10:56:26 +00:00
|
|
|
{ stdenv, fetchurl, python2Packages, git }:
|
|
|
|
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
|
|
version = "1.4.2";
|
|
|
|
name = "git-up-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/g/git-up/${name}.zip";
|
|
|
|
sha256 = "121ia5gyjy7js6fbsx9z98j2qpq7rzwpsj8gnfvsbz2d69g0vl7q";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ git ] ++ (with python2Packages; [ nose ]);
|
|
|
|
propagatedBuildInputs = with python2Packages; [ click colorama docopt GitPython six termcolor ];
|
|
|
|
|
|
|
|
# 1. git fails to run as it cannot detect the email address, so we set it
|
|
|
|
# 2. $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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -r $out/${python2Packages.python.sitePackages}/PyGitUp/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 21:50:51 +00:00
|
|
|
homepage = https://github.com/msiemens/PyGitUp;
|
2017-01-06 10:56:26 +00:00
|
|
|
description = "A git pull replacement that rebases all local branches when pulling.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.all;
|
2017-11-28 17:57:38 +00:00
|
|
|
broken = true; # Incompatible with Git 2.15 object store.
|
2017-01-06 10:56:26 +00:00
|
|
|
};
|
|
|
|
}
|