default.nix (1017B)
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 pyproject = true; 12 disabled = python3Packages.pythonOlder "3.9"; 13 14 src = fetchFromGitHub { 15 owner = "enzet"; 16 repo = "map-machine"; 17 tag = "v${version}"; 18 hash = "sha256-aOfvVyTgDxh7T2oAc+S1eU9b/JjXAhfc3WfR27ECXcY="; 19 }; 20 21 build-system = with python3Packages; [ setuptools ]; 22 23 dependencies = with python3Packages; [ 24 cairosvg 25 colour 26 numpy 27 pillow 28 portolan 29 pycairo 30 pyyaml 31 shapely 32 svgwrite 33 urllib3 34 ]; 35 36 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 37 preCheck = "export PATH=$PATH:$out/bin"; 38 disabledTests = [ "test_tile" ]; 39 40 meta = { 41 description = "A simple renderer for OpenStreetMap with custom icons"; 42 homepage = "https://github.com/enzet/map-machine"; 43 license = lib.licenses.mit; 44 maintainers = [ lib.maintainers.sikmir ]; 45 mainProgram = "map-machine"; 46 }; 47 }