2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, pythonOlder
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, branca
|
|
|
|
, jinja2
|
2020-04-24 23:36:52 +00:00
|
|
|
, nbconvert
|
2022-02-10 20:34:41 +00:00
|
|
|
, numpy
|
2020-04-24 23:36:52 +00:00
|
|
|
, pandas
|
2022-02-10 20:34:41 +00:00
|
|
|
, pillow
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2022-02-10 20:34:41 +00:00
|
|
|
, selenium
|
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "folium";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "0.12.1.post1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "python-visualization";
|
|
|
|
repo = "folium";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-4UseN/3ojZdDUopwZLpHZEBon1qDDvCWfdzxodi/BeA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
branca
|
|
|
|
jinja2
|
|
|
|
numpy
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
checkInputs = [
|
|
|
|
nbconvert
|
|
|
|
pytestCheckHook
|
|
|
|
pandas
|
|
|
|
pillow
|
|
|
|
selenium
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires internet connection
|
|
|
|
"test_geojson"
|
|
|
|
"test_heat_map_with_weights"
|
|
|
|
"test_json_request"
|
|
|
|
"test_notebook"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Make beautiful maps with Leaflet.js & Python";
|
|
|
|
homepage = "https://github.com/python-visualization/folium";
|
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|