default.nix (886B)
1 { lib, stdenv, python3Packages, fetchurl, installShellFiles }: 2 3 python3Packages.buildPythonApplication rec { 4 pname = "phyghtmap"; 5 version = "2.23"; 6 7 src = fetchurl { 8 url = "http://katze.tfiu.de/projects/phyghtmap/phyghtmap_${version}.orig.tar.gz"; 9 hash = "sha256-jA6uc/HVdrDQF3NX0Cbu4wMl4SSd7cA/VOvtRRzDsBM="; 10 }; 11 12 postPatch = '' 13 substituteInPlace phyghtmap/hgt.py --replace "_contour" "contour" 14 ''; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 propagatedBuildInputs = with python3Packages; [ beautifulsoup4 lxml matplotlib numpy ]; 19 20 postInstall = "installManPage docs/phyghtmap.1"; 21 22 meta = with lib; { 23 description = "Generate OSM contour lines from NASA SRTM data"; 24 homepage = "http://katze.tfiu.de/projects/phyghtmap"; 25 license = licenses.gpl2Plus; 26 maintainers = [ maintainers.sikmir ]; 27 broken = stdenv.isDarwin; # xyzservices 28 }; 29 }