at 18.03-beta 36 lines 1.2 kB view raw
1{ stdenv, fetchurl, python2Packages, git }: 2 3python2Packages.buildPythonApplication rec { 4 version = "1.4.2"; 5 name = "git-up-${version}"; 6 7 src = fetchurl { 8 url = "mirror://pypi/g/git-up/${name}.zip"; 9 sha256 = "121ia5gyjy7js6fbsx9z98j2qpq7rzwpsj8gnfvsbz2d69g0vl7q"; 10 }; 11 12 buildInputs = [ git ] ++ (with python2Packages; [ nose ]); 13 propagatedBuildInputs = with python2Packages; [ click colorama docopt GitPython six termcolor ]; 14 15 # 1. git fails to run as it cannot detect the email address, so we set it 16 # 2. $HOME is by default not a valid dir, so we have to set that too 17 # https://github.com/NixOS/nixpkgs/issues/12591 18 preCheck = '' 19 export HOME=$TMPDIR 20 git config --global user.email "nobody@example.com" 21 git config --global user.name "Nobody" 22 ''; 23 24 postInstall = '' 25 rm -r $out/${python2Packages.python.sitePackages}/PyGitUp/tests 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = https://github.com/msiemens/PyGitUp; 30 description = "A git pull replacement that rebases all local branches when pulling."; 31 license = licenses.mit; 32 maintainers = with maintainers; [ peterhoeg ]; 33 platforms = platforms.all; 34 broken = true; # Incompatible with Git 2.15 object store. 35 }; 36}