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

41 lines
748 B
Nix
Raw Normal View History

2017-05-04 07:18:16 -07:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, numpy
, nbconvert
, pandas
, mock
, jinja2
, branca
, six
2017-11-11 00:22:25 -08:00
, requests
2017-05-04 07:18:16 -07:00
}:
buildPythonPackage rec {
pname = "folium";
version = "0.8.0";
2017-05-04 07:18:16 -07:00
src = fetchPypi {
inherit pname version;
sha256 = "0f25fhwxnix8hddzf67barzjwwsvpww112zisrvz2lpl08j388rn";
2017-05-04 07:18:16 -07:00
};
checkInputs = [ pytest nbconvert pandas mock ];
2018-08-31 01:39:44 -07:00
propagatedBuildInputs = [ jinja2 branca six 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;
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fridh ];
};
}