nixpkgs/pkgs/development/python-modules/mapclassify/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
geopandas,
libpysal,
matplotlib,
networkx,
numpy,
pandas,
scikit-learn,
scipy,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "mapclassify";
version = "2.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pysal";
repo = "mapclassify";
tag = "v${version}";
hash = "sha256-OQpDrxa0zRPDAdyS6KP5enb/JZwbYoXTV8kUijV3tNM=";
};
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
networkx
numpy
pandas
scikit-learn
scipy
];
nativeCheckInputs = [
pytestCheckHook
geopandas
libpysal
matplotlib
];
# requires network access
disabledTestPaths = [
# this module does http requests *at import time*
"mapclassify/tests/test_greedy.py"
# depends on remote data
"mapclassify/tests/test_rgba.py"
];
disabledTests = [
# depends on remote datasets
"test_legendgram_map"
"test_legendgram_most_recent_cmap"
];
pythonImportsCheck = [ "mapclassify" ];
meta = {
description = "Classification Schemes for Choropleth Maps";
homepage = "https://pysal.org/mapclassify/";
changelog = "https://github.com/pysal/mapclassify/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
teams = [ lib.teams.geospatial ];
};
}