From 665df607fba527c1fe62c416cf005ceee56a0d7a Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 4 May 2017 16:18:16 +0200 Subject: [PATCH] pythonPackages.folium: init at 0.3.0 --- .../python-modules/folium/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/folium/default.nix diff --git a/pkgs/development/python-modules/folium/default.nix b/pkgs/development/python-modules/folium/default.nix new file mode 100644 index 000000000000..387da64219df --- /dev/null +++ b/pkgs/development/python-modules/folium/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, numpy +, nbconvert +, pandas +, mock +, jinja2 +, branca +, six +}: + +buildPythonPackage rec { + pname = "folium"; + version = "0.3.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "7729ddd6766b9c5dab17b3709e2387935fd5c655872f1cbab7b7036474415217"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 90c6fdaa419c..656c47b715af 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11788,6 +11788,8 @@ in { }; }); + folium = callPackage ../development/python-modules/folium { }; + fontforge = pkgs.fontforge.override { withPython = true; inherit python;