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

43 lines
786 B
Nix
Raw Normal View History

2017-05-04 16:18:16 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
2017-05-04 16:18:16 +02:00
, pytest
, numpy
, nbconvert
, pandas
, mock
, jinja2
, branca
2017-11-11 09:22:25 +01:00
, requests
2017-05-04 16:18:16 +02:00
}:
buildPythonPackage rec {
pname = "folium";
version = "0.10.1";
2017-05-04 16:18:16 +02:00
src = fetchPypi {
inherit pname version;
sha256 = "0gcc267wxwxr57ry86pqpbiyfvl0g48hfvgy0f2mz9s58g87kgzd";
2017-05-04 16:18:16 +02:00
};
disabled = pythonOlder "3.5";
checkInputs = [ pytest nbconvert pandas mock ];
propagatedBuildInputs = [ jinja2 branca requests numpy ];
2017-05-04 16:18:16 +02:00
2017-11-11 09:22:25 +01:00
# No tests in archive
doCheck = false;
2017-05-04 16:18:16 +02:00
2017-11-11 09:22:25 +01:00
checkPhase = ''
py.test
'';
2017-05-04 16:18:16 +02: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 ];
};
}