default.nix (941B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 portolan, 6 }: 7 8 python3Packages.buildPythonApplication rec { 9 pname = "map-machine"; 10 version = "0.1.9"; 11 disabled = python3Packages.pythonOlder "3.9"; 12 13 src = fetchFromGitHub { 14 owner = "enzet"; 15 repo = "map-machine"; 16 rev = "v${version}"; 17 hash = "sha256-aOfvVyTgDxh7T2oAc+S1eU9b/JjXAhfc3WfR27ECXcY="; 18 }; 19 20 dependencies = with python3Packages; [ 21 cairosvg 22 colour 23 numpy 24 pillow 25 portolan 26 pycairo 27 pyyaml 28 shapely 29 svgwrite 30 urllib3 31 ]; 32 33 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 34 preCheck = "export PATH=$PATH:$out/bin"; 35 disabledTests = [ "test_tile" ]; 36 37 meta = { 38 description = "A simple renderer for OpenStreetMap with custom icons"; 39 homepage = "https://github.com/enzet/map-machine"; 40 license = lib.licenses.mit; 41 maintainers = [ lib.maintainers.sikmir ]; 42 mainProgram = "map-machine"; 43 }; 44 }