Files
nixpkgs/pkgs/development/python-modules/pystac-client/default.nix
Ivan Mincik 56ec187b2e python3Packages.pystac-client: init at 0.8.3
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
2024-08-28 10:57:14 +02:00

63 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
pystac,
pytest-benchmark,
pytest-console-scripts,
pytest-mock,
pytest-recording,
python-dateutil,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "pystac-client";
version = "0.8.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "stac-utils";
repo = "pystac-client";
rev = "v${version}";
hash = "sha256-tzfpvNtj+KkKjA75En+OwxYQWGzxHLACLkzWT2j/ThU=";
};
build-system = [ setuptools ];
dependencies = [
pystac
python-dateutil
requests
];
nativeCheckInputs = [
pytest-benchmark
pytestCheckHook
pytest-console-scripts
pytest-mock
pytest-recording
requests-mock
];
pytestFlagsArray = [
# Tests accessing Internet
"-m 'not vcr'"
];
pythonImportsCheck = [ "pystac_client" ];
meta = {
description = "A Python client for working with STAC Catalogs and APIs";
homepage = "https://github.com/stac-utils/pystac-client";
license = lib.licenses.asl20;
maintainers = lib.teams.geospatial.members;
};
}