nixpkgs/pkgs/development/python-modules/folium/default.nix

66 lines
1.1 KiB
Nix
Raw Normal View History

2017-05-04 14:18:16 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, branca
, jinja2
2017-05-04 14:18:16 +00:00
, nbconvert
, numpy
2017-05-04 14:18:16 +00:00
, pandas
, pillow
2017-11-11 08:22:25 +00:00
, requests
, selenium
, setuptools-scm
2017-05-04 14:18:16 +00:00
}:
buildPythonPackage rec {
pname = "folium";
version = "0.12.1.post1";
2017-05-04 14:18:16 +00:00
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "python-visualization";
repo = "folium";
rev = "v${version}";
sha256 = "sha256-4UseN/3ojZdDUopwZLpHZEBon1qDDvCWfdzxodi/BeA=";
2017-05-04 14:18:16 +00:00
};
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
branca
jinja2
numpy
requests
];
2017-05-04 14:18:16 +00:00
checkInputs = [
nbconvert
pytestCheckHook
pandas
pillow
selenium
];
2017-05-04 14:18:16 +00:00
disabledTests = [
# requires internet connection
"test_geojson"
"test_heat_map_with_weights"
"test_json_request"
"test_notebook"
];
2017-05-04 14:18:16 +00:00
meta = {
description = "Make beautiful maps with Leaflet.js & Python";
homepage = "https://github.com/python-visualization/folium";
2017-05-04 14:18:16 +00:00
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fridh ];
};
}