Files
nixpkgs/pkgs/development/python-modules/libpysal/default.nix
T
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

87 lines
1.8 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
beautifulsoup4,
fiona,
geodatasets,
geopandas,
numpy,
packaging,
pandas,
platformdirs,
requests,
scikit-learn,
scipy,
setuptools-scm,
shapely,
}:
buildPythonPackage rec {
pname = "libpysal";
version = "4.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pysal";
repo = "libpysal";
tag = "v${version}";
hash = "sha256-lUaSUNNT2alfbBOjo59Dbjc3Yrkim3ZQHdLbxdrhDFw=";
};
build-system = [ setuptools-scm ];
dependencies = [
beautifulsoup4
fiona
geopandas
numpy
packaging
pandas
platformdirs
requests
scikit-learn
scipy
shapely
];
nativeCheckInputs = [
geodatasets
pytestCheckHook
];
preCheck = ''
export HOME=$TMPDIR
'';
# requires network access
disabledTestPaths = [
"libpysal/graph/tests/test_summary.py"
"libpysal/cg/tests/test_geoJSON.py"
"libpysal/examples/tests/test_available.py"
"libpysal/graph/tests/test_base.py"
"libpysal/graph/tests/test_builders.py"
"libpysal/graph/tests/test_contiguity.py"
"libpysal/graph/tests/test_kernel.py"
"libpysal/graph/tests/test_matching.py"
"libpysal/graph/tests/test_plotting.py"
"libpysal/graph/tests/test_triangulation.py"
"libpysal/graph/tests/test_utils.py"
"libpysal/graph/tests/test_set_ops.py"
"libpysal/weights/tests/test_contiguity.py"
"libpysal/weights/tests/test_util.py"
];
pythonImportsCheck = [ "libpysal" ];
meta = {
description = "Library of spatial analysis functions";
homepage = "https://pysal.org/libpysal/";
changelog = "https://github.com/pysal/libpysal/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
teams = [ lib.teams.geospatial ];
};
}