1{ stdenv, buildPythonPackage, fetchPypi }:
2
3buildPythonPackage rec {
4 pname = "ydiff";
5 version = "1.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "f5430577ecd30974d766ee9b8333e06dc76a947b4aae36d39612a0787865a121";
10 };
11
12 # test suite requires a multitude of other version control tooling
13 # currently only a single file, an import/usage should suffice
14 checkPhase = ''
15 $out/bin/ydiff --help
16 '';
17
18 meta = with stdenv.lib; {
19 description = "View colored, incremental diff in workspace or from stdin with side by side and auto pager support (Was \"cdiff\")";
20 longDescription = ''
21 Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
22 workspace or from stdin, with side by side (similar to diff -y) and auto
23 pager support
24 '';
25 homepage = "https://github.com/ymattw/ydiff";
26 license = licenses.bsd3;
27 maintainers = [ maintainers.limeytexan ];
28 };
29}