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