python.pkgs.folium: fix build

This commit is contained in:
Frederik Rietdijk 2017-11-11 09:22:25 +01:00
parent 2b2088ef32
commit ff4080e11f

View File

@ -9,32 +9,27 @@
, jinja2 , jinja2
, branca , branca
, six , six
, requests
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "folium"; pname = "folium";
version = "0.5.0"; version = "0.5.0";
name = "${pname}-${version}";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "748944521146d85c6cd6230acf234e885864cd0f42fea3758d655488517e5e6e"; sha256 = "748944521146d85c6cd6230acf234e885864cd0f42fea3758d655488517e5e6e";
}; };
postPatch = ''
# Causes trouble because a certain file cannot be found
rm tests/notebooks/test_notebooks.py
'';
checkInputs = [ pytest numpy nbconvert pandas mock ]; checkInputs = [ pytest numpy nbconvert pandas mock ];
propagatedBuildInputs = [ jinja2 branca six ]; propagatedBuildInputs = [ jinja2 branca six requests ];
# # No tests in archive
# doCheck = false; doCheck = false;
# checkPhase = '' checkPhase = ''
# py.test -k 'not test_notebooks' py.test
# ''; '';
meta = { meta = {
description = "Make beautiful maps with Leaflet.js & Python"; description = "Make beautiful maps with Leaflet.js & Python";