package.nix (1044B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 portolan, 6 }: 7 8 python3Packages.buildPythonApplication rec { 9 pname = "map-machine"; 10 version = "0.2.0"; 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-QDCbT4n8M2eJkv2uFyr9aDs16UzFG+oH/qMwpf08bfI="; 19 }; 20 21 build-system = with python3Packages; [ setuptools ]; 22 23 pythonRelaxDeps = true; 24 25 dependencies = with python3Packages; [ 26 cairosvg 27 colour 28 numpy 29 pillow 30 portolan 31 pycairo 32 pyyaml 33 shapely 34 svgwrite 35 urllib3 36 ]; 37 38 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 39 preCheck = "export PATH=$PATH:$out/bin"; 40 disabledTests = [ "test_tile" ]; 41 42 meta = { 43 description = "A simple renderer for OpenStreetMap with custom icons"; 44 homepage = "https://github.com/enzet/map-machine"; 45 license = lib.licenses.mit; 46 maintainers = [ lib.maintainers.sikmir ]; 47 mainProgram = "map-machine"; 48 }; 49 }
