Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
956 B
Nix
55 lines
956 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
|
|
geopandas,
|
|
pooch,
|
|
pyogrio,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geodatasets";
|
|
version = "2024.8.0";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geopandas";
|
|
repo = "geodatasets";
|
|
tag = version;
|
|
hash = "sha256-GJ7RyFlohlRz0RbQ80EewZUmIX9CJkSfUMY/uMNTtEM=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ pooch ];
|
|
|
|
nativeCheckInputs = [
|
|
geopandas
|
|
pyogrio
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
disabledTestMarks = [
|
|
# disable tests which require network access
|
|
"request"
|
|
];
|
|
|
|
pythonImportsCheck = [ "geodatasets" ];
|
|
|
|
meta = {
|
|
description = "Spatial data examples";
|
|
homepage = "https://geodatasets.readthedocs.io/";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.geospatial ];
|
|
};
|
|
}
|