about summary refs log tree commit diff
path: root/pkgs/development/python-modules/folium/default.nix
blob: 71aabd75d754327f1cf3ed4e5c168be2f6a33b0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, numpy
, nbconvert
, pandas
, mock
, jinja2
, branca
, six
}:

buildPythonPackage rec {
  pname = "folium";
  version = "0.5.0";
  name = "${pname}-${version}";

  src = fetchPypi {
    inherit pname version;
    sha256 = "748944521146d85c6cd6230acf234e885864cd0f42fea3758d655488517e5e6e";
  };

  postPatch = ''
    # Causes trouble because a certain file cannot be found
    rm tests/notebooks/test_notebooks.py
  '';

  checkInputs = [ pytest numpy nbconvert pandas mock ];
  propagatedBuildInputs = [ jinja2 branca six ];

  #
#   doCheck = false;

#   checkPhase = ''
#     py.test -k 'not test_notebooks'
#   '';

  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 ];
  };
}