Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495{ lib, buildPythonPackage, branca, fetchFromGitHub, fetchpatch2, geodatasets, geopandas, jinja2, nbconvert, numpy, pandas, pillow, pixelmatch, pytestCheckHook, requests, selenium, setuptools, setuptools-scm, xyzservices,}:
buildPythonPackage rec { pname = "folium"; version = "0.20.0"; pyproject = true;
src = fetchFromGitHub { owner = "python-visualization"; repo = "folium"; tag = "v${version}"; hash = "sha256-yLF4TdrMVEtWvGXZGbwa3OxCkdXMsN4m45rPrGDHlCU="; };
patches = [ # https://github.com/python-visualization/folium/pull/2223 (fetchpatch2 { name = "folium-fix-tests-proj-9.8.1"; url = "https://github.com/python-visualization/folium/commit/b4ea8aa12d0808536c4f50b63eddd006e68680cb.patch?full_index=1"; hash = "sha256-e6PFvK/qAfVTPs8LF2XgojwFJ/s2PDrIuwEkxRUzSkE="; }) ];
build-system = [ setuptools setuptools-scm ];
dependencies = [ branca jinja2 numpy requests xyzservices ];
nativeCheckInputs = [ geodatasets geopandas nbconvert pandas pillow pixelmatch pytestCheckHook selenium ];
disabledTests = [ # Tests require internet connection "test_json_request" # no selenium driver "test__repr_png_is_bytes" "test_valid_png_size" "test_valid_png" # pooch tries to write somewhere it can, and geodatasets does not give us an env var to customize this. "test_timedynamic_geo_json" ];
disabledTestPaths = [ # Selenium cannot find chrome driver, even with chromedriver package "tests/snapshots/test_snapshots.py" "tests/selenium" ];
pythonImportsCheck = [ "folium" ];
meta = { description = "Make beautiful maps with Leaflet.js & Python"; homepage = "https://github.com/python-visualization/folium"; changelog = "https://github.com/python-visualization/folium/releases/tag/${src.tag}"; license = lib.licenses.mit; teams = [ lib.teams.geospatial ]; };}