nixpkgs/pkgs/development/python-modules/folium/default.nix
Frederik Rietdijk 5772ac5a75 Removing FRidh as active maintainer of packages
In the past I was very active with Python packaging.
For several years now I was hardly around as maintainer,
so it does not make sense I am listed as a maintainer for
these makes. Looking back, I should have removed myself
as maintainer already much longer ago. Anyway, better late
than never.

It's been a fun ride, and  I do intend to occasionally contribute
to Nixpkgs, but not in the same way it once was.
2024-04-28 12:20:07 +02:00

80 lines
1.4 KiB
Nix

{ lib
, branca
, buildPythonPackage
, fetchFromGitHub
, geopandas
, jinja2
, nbconvert
, numpy
, pandas
, pillow
, pytestCheckHook
, pythonOlder
, requests
, selenium
, setuptools
, setuptools-scm
, wheel
, xyzservices
}:
buildPythonPackage rec {
pname = "folium";
version = "0.16.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-visualization";
repo = "folium";
rev = "refs/tags/v${version}";
hash = "sha256-ADDqjZUQVI4K/Bf38905g1K9TD2/e1RYvYWddvFtdrU=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
propagatedBuildInputs = [
branca
jinja2
numpy
requests
xyzservices
];
nativeCheckInputs = [
geopandas
nbconvert
pandas
pillow
pytestCheckHook
selenium
];
disabledTests = [
# Tests require internet connection
"test__repr_png_is_bytes"
"test_geojson"
"test_heat_map_with_weights"
"test_json_request"
"test_notebook"
"test_valid_png_size"
"test_valid_png"
];
pythonImportsCheck = [
"folium"
];
meta = {
description = "Make beautiful maps with Leaflet.js & Python";
homepage = "https://github.com/python-visualization/folium";
changelog = "https://github.com/python-visualization/folium/blob/v${version}/CHANGES.txt";
license = with lib.licenses; [ mit ];
};
}