1 { lib, stdenv, fetchFromGitHub, python3Packages, makeWrapper }:
5 version = "0.1-2014-02-26";
7 src = fetchFromGitHub {
10 rev = "53b181faff5f154bcd180467dd04c0ce69405564";
11 sha256 = "sha256-9iRCNDC0FJ+JD2Hk5TC0w4QMjJ9mMtct5WIA35xTGTg=";
14 nativeBuildInputs = [ makeWrapper ];
16 propagatedBuildInputs = with python3Packages; [ requests vobject lxml ];
20 doCheck = false; # no test
24 cp $src/carddav-util.py $out/bin
26 pythondir="$out/lib/${python3Packages.python.sitePackages}"
28 cp $src/carddav.py "$pythondir"
32 wrapProgram "$out/bin/carddav-util.py" \
33 --prefix PYTHONPATH : "$PYTHONPATH:$(toPythonPath $out)" \
34 --prefix PATH : "$prefix/bin:$PATH"
38 homepage = "https://github.com/ljanyst/carddav-util";
39 description = "CardDAV import/export utility";
40 mainProgram = "carddav-util.py";
41 platforms = platforms.unix;
42 license = licenses.isc;