1 { lib, buildPythonPackage, fetchPypi, docutils, pygments
2 , gitMinimal, mercurial, subversion, patchutils, less
5 buildPythonPackage rec {
10 inherit pname version;
11 sha256 = "f5430577ecd30974d766ee9b8333e06dc76a947b4aae36d39612a0787865a121";
15 substituteInPlace ydiff.py \
16 --replace "['git'" "['${gitMinimal}/bin/git'" \
17 --replace "['hg'" "['${mercurial}/bin/hg'" \
18 --replace "['svn'" "['${subversion}/bin/svn'" \
19 --replace "['filterdiff'" "['${patchutils}/bin/filterdiff'" \
20 --replace "['less'" "['${less}/bin/less'" # doesn't support PAGER from env
21 substituteInPlace tests/test_ydiff.py \
22 --replace /bin/rm rm \
24 patchShebangs setup.py
25 patchShebangs tests/*.sh
28 nativeCheckInputs = [ docutils pygments ];
32 make doc-check reg # We don't want the linter or coverage check.
37 description = "View colored, incremental diff in workspace or from stdin with side by side and auto pager support (Was \"cdiff\")";
39 Term based tool to view colored, incremental diff in a version
40 controlled workspace (supports Git, Mercurial, Perforce and Svn
41 so far) or from stdin, with side by side (similar to diff -y)
42 and auto pager support.
44 homepage = "https://github.com/ymattw/ydiff";
45 license = licenses.bsd3;
46 maintainers = (with maintainers; [ leenaars ]) ++ teams.deshaw.members;