default.nix (941B)
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 pyproject = true; 13 14 src = fetchurl { 15 url = "http://katze.tfiu.de/projects/phyghtmap/phyghtmap_${version}.orig.tar.gz"; 16 hash = "sha256-jA6uc/HVdrDQF3NX0Cbu4wMl4SSd7cA/VOvtRRzDsBM="; 17 }; 18 19 postPatch = '' 20 substituteInPlace phyghtmap/hgt.py --replace-fail "_contour" "contour" 21 ''; 22 23 build-system = with python3Packages; [ setuptools ]; 24 25 nativeBuildInputs = [ installShellFiles ]; 26 27 dependencies = with python3Packages; [ 28 beautifulsoup4 29 lxml 30 matplotlib 31 numpy 32 ]; 33 34 postInstall = "installManPage docs/phyghtmap.1"; 35 36 meta = { 37 description = "Generate OSM contour lines from NASA SRTM data"; 38 homepage = "http://katze.tfiu.de/projects/phyghtmap"; 39 license = lib.licenses.gpl2Plus; 40 maintainers = [ lib.maintainers.sikmir ]; 41 }; 42 }