mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
55 lines
989 B
Nix
55 lines
989 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";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-GJ7RyFlohlRz0RbQ80EewZUmIX9CJkSfUMY/uMNTtEM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|