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

43 lines
800 B
Nix
Raw Normal View History

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