default.nix (959B)
1 { lib, fetchFromGitHub, python3Packages, geotiler }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "cmpgpx"; 5 version = "0-unstable-2015-06-05"; 6 format = "other"; 7 8 src = fetchFromGitHub { 9 owner = "jonblack"; 10 repo = "cmpgpx"; 11 rev = "ec3ff781da9b7bcbc2dee44a3bd641cbd5005efe"; 12 hash = "sha256-iJajSbDDPkBmGKZp0QH03RK9VBMmLHWvHViojlQJArs="; 13 }; 14 15 propagatedBuildInputs = with python3Packages; [ cairocffi geotiler gpxpy numpy ]; 16 17 dontUseSetuptoolsBuild = true; 18 dontUseSetuptoolsCheck = true; 19 20 installPhase = '' 21 install -Dm644 geo.py gfx.py -t $out/lib/${python3Packages.python.libPrefix}/site-packages 22 install -Dm755 cmpgpx.py $out/bin/cmpgpx 23 install -Dm755 dist.py $out/bin/dist 24 ''; 25 26 meta = with lib; { 27 description = "Show the differences between GPX files"; 28 inherit (src.meta) homepage; 29 license = licenses.unlicense; 30 maintainers = [ maintainers.sikmir ]; 31 mainProgram = "cmpgpx"; 32 }; 33 }