2017-05-04 15:18:16 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-05-22 17:59:09 +01:00
|
|
|
, pythonOlder
|
2017-05-04 15:18:16 +01:00
|
|
|
, pytest
|
|
|
|
, numpy
|
|
|
|
, nbconvert
|
|
|
|
, pandas
|
|
|
|
, mock
|
|
|
|
, jinja2
|
|
|
|
, branca
|
2017-11-11 08:22:25 +00:00
|
|
|
, requests
|
2017-05-04 15:18:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "folium";
|
2021-01-08 16:58:53 +00:00
|
|
|
version = "0.12.0";
|
2017-05-04 15:18:16 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-08 16:58:53 +00:00
|
|
|
sha256 = "d45ace0a813ae65f202ce0356eb29c40a5e8fde071e4d6b5be0a89587ebaeab2";
|
2017-05-04 15:18:16 +01:00
|
|
|
};
|
|
|
|
|
2019-05-22 17:59:09 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-08-30 16:56:07 +01:00
|
|
|
checkInputs = [ pytest nbconvert pandas mock ];
|
2019-05-22 17:59:09 +01:00
|
|
|
propagatedBuildInputs = [ jinja2 branca requests numpy ];
|
2017-05-04 15:18:16 +01:00
|
|
|
|
2017-11-11 08:22:25 +00:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
2017-05-04 15:18:16 +01:00
|
|
|
|
2017-11-11 08:22:25 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2017-05-04 15:18:16 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Make beautiful maps with Leaflet.js & Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/python-visualization/folium";
|
2017-05-04 15:18:16 +01:00
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
|
|
|
}
|