nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 65 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pytestCheckHook 6, branca 7, jinja2 8, nbconvert 9, numpy 10, pandas 11, pillow 12, requests 13, selenium 14, setuptools-scm 15}: 16 17buildPythonPackage rec { 18 pname = "folium"; 19 version = "0.12.1.post1"; 20 21 disabled = pythonOlder "3.5"; 22 23 src = fetchFromGitHub { 24 owner = "python-visualization"; 25 repo = "folium"; 26 rev = "v${version}"; 27 sha256 = "sha256-4UseN/3ojZdDUopwZLpHZEBon1qDDvCWfdzxodi/BeA="; 28 }; 29 30 SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; 31 32 nativeBuildInputs = [ 33 setuptools-scm 34 ]; 35 36 propagatedBuildInputs = [ 37 branca 38 jinja2 39 numpy 40 requests 41 ]; 42 43 checkInputs = [ 44 nbconvert 45 pytestCheckHook 46 pandas 47 pillow 48 selenium 49 ]; 50 51 disabledTests = [ 52 # requires internet connection 53 "test_geojson" 54 "test_heat_map_with_weights" 55 "test_json_request" 56 "test_notebook" 57 ]; 58 59 meta = { 60 description = "Make beautiful maps with Leaflet.js & Python"; 61 homepage = "https://github.com/python-visualization/folium"; 62 license = with lib.licenses; [ mit ]; 63 maintainers = with lib.maintainers; [ fridh ]; 64 }; 65}