python3Packages.pixelmatch: init at 0.3.0 and fix folium (#439528)

Changed files
+58 -6
pkgs
development
python-modules
folium
pixelmatch
top-level
+8 -6
pkgs/development/python-modules/folium/default.nix
···
{
lib,
-
branca,
buildPythonPackage,
+
branca,
fetchFromGitHub,
geodatasets,
geopandas,
···
numpy,
pandas,
pillow,
+
pixelmatch,
pytestCheckHook,
pythonOlder,
requests,
···
nbconvert
pandas
pillow
+
pixelmatch
pytestCheckHook
+
selenium
];
disabledTests = [
# Tests require internet connection
+
"test_json_request"
+
# no selenium driver
"test__repr_png_is_bytes"
-
"test_geojson"
-
"test_heat_map_with_weights"
-
"test_json_request"
-
"test_notebook"
"test_valid_png_size"
"test_valid_png"
# pooch tries to write somewhere it can, and geodatasets does not give us an env var to customize this.
···
];
disabledTestPaths = [
-
# Import issue with selenium.webdriver.common.fedcm
+
# Selenium cannot find chrome driver, even with chromedriver package
+
"tests/snapshots/test_snapshots.py"
"tests/selenium"
];
+48
pkgs/development/python-modules/pixelmatch/default.nix
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchgit,
+
pillow,
+
poetry-core,
+
pytestCheckHook,
+
pytest-benchmark,
+
pythonOlder,
+
}:
+
let
+
owner = "whtsky";
+
repo = "pixelmatch-py";
+
in
+
buildPythonPackage rec {
+
pname = "pixelmatch";
+
version = "0.3.0";
+
pyproject = true;
+
+
disabled = pythonOlder "3.7";
+
+
src = fetchgit {
+
url = "https://github.com/whtsky/pixelmatch-py.git";
+
tag = "v${version}";
+
hash = "sha256-xq0LT7v83YRz0baw24iDXiuUxiNPMEsiZNIewsH3JPw=";
+
fetchLFS = true;
+
};
+
+
build-system = [
+
poetry-core
+
];
+
+
nativeCheckInputs = [
+
pillow
+
pytest-benchmark
+
pytestCheckHook
+
];
+
+
pythonImportsCheck = [ "pixelmatch" ];
+
+
meta = {
+
description = "A pixel-level image comparison library";
+
homepage = "https://github.com/whtsky/pixelmatch-py";
+
changelog = "https://github.com/whtsky/pixelmatch-py/tree/v${version}#changelog";
+
license = with lib.licenses; [ isc ];
+
teams = [ lib.teams.geospatial ];
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
pixel-ring = callPackage ../development/python-modules/pixel-ring { };
+
pixelmatch = callPackage ../development/python-modules/pixelmatch { };
+
pizzapi = callPackage ../development/python-modules/pizzapi { };
pjsua2 =