1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pystac,
pytest-benchmark,
pytest-console-scripts,
pytest-mock,
pytest-recording,
python-dateutil,
requests,
requests-mock,
setuptools,
}:
buildPythonPackage rec {
pname = "pystac-client";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "stac-utils";
repo = "pystac-client";
tag = "v${version}";
hash = "sha256-+DOWf1ZAwylicdSuOBNivi0Z7DxaymZF756X7fogAjc=";
};
build-system = [ setuptools ];
dependencies = [
pystac
python-dateutil
requests
];
nativeCheckInputs = [
pytest-benchmark
pytestCheckHook
pytest-console-scripts
pytest-mock
pytest-recording
requests-mock
];
pytestFlags = [
"--benchmark-disable"
];
disabledTestMarks = [
# Tests accessing Internet
"vcr"
];
# requires cql2
disabledTests = [
"test_filter_conversion_to_cql2_json"
"test_filter_conversion_to_cql2_text"
];
pythonImportsCheck = [ "pystac_client" ];
meta = {
description = "Python client for working with STAC Catalogs and APIs";
homepage = "https://github.com/stac-utils/pystac-client";
license = lib.licenses.asl20;
teams = [ lib.teams.geospatial ];
};
}
|