fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
54 lines
975 B
Nix
54 lines
975 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
|
|
geopandas,
|
|
pooch,
|
|
pyogrio,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geodatasets";
|
|
version = "2023.12.0";
|
|
pyproject = true;
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geopandas";
|
|
repo = "geodatasets";
|
|
rev = version;
|
|
hash = "sha256-yecAky3lCKcSgW4kkYTBNnyKyIWnGSBL600wVgGN8CE=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ pooch ];
|
|
|
|
nativeCheckInputs = [
|
|
geopandas
|
|
pyogrio
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
# disable tests which require network access
|
|
"-m 'not request'"
|
|
];
|
|
|
|
pythonImportsCheck = [ "geodatasets" ];
|
|
|
|
meta = {
|
|
description = "Spatial data examples";
|
|
homepage = "https://geodatasets.readthedocs.io/";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = lib.teams.geospatial.members;
|
|
};
|
|
}
|