2024-05-18 21:37:59 +04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
html5lib,
|
|
|
|
jsonschema,
|
2024-10-15 21:23:33 -04:00
|
|
|
pytest-cov-stub,
|
2024-05-18 21:37:59 +04:00
|
|
|
pytest-mock,
|
|
|
|
pytest-recording,
|
|
|
|
python-dateutil,
|
|
|
|
requests-mock,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pystac";
|
2025-04-22 11:22:13 +00:00
|
|
|
version = "1.13.0";
|
2024-05-18 21:37:59 +04:00
|
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stac-utils";
|
|
|
|
repo = "pystac";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = "v${version}";
|
2025-04-22 11:22:13 +00:00
|
|
|
hash = "sha256-DxRJsnbzXBnpQSJE0VwkXV3vyH6WffiMaZ3119XBxJ8=";
|
2024-05-18 21:37:59 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ python-dateutil ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
html5lib
|
|
|
|
jsonschema
|
|
|
|
pytestCheckHook
|
2024-10-15 21:23:33 -04:00
|
|
|
pytest-cov-stub
|
2024-05-18 21:37:59 +04:00
|
|
|
pytest-mock
|
|
|
|
pytest-recording
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pystac" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)";
|
|
|
|
homepage = "https://github.com/stac-utils/pystac";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
teams = [ lib.teams.geospatial ];
|
|
|
|
};
|
|
|
|
}
|