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