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