1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7
8 html5lib,
9 jsonschema,
10 pytest-cov-stub,
11 pytest-mock,
12 pytest-recording,
13 python-dateutil,
14 requests-mock,
15 setuptools,
16}:
17
18buildPythonPackage rec {
19 pname = "pystac";
20 version = "1.14.1";
21 pyproject = true;
22 disabled = pythonOlder "3.9";
23
24 src = fetchFromGitHub {
25 owner = "stac-utils";
26 repo = "pystac";
27 tag = "v${version}";
28 hash = "sha256-k2w/Se/XdPLZQ69TQkIomPsI6uiM+dO2H2HQ3fvPyF0=";
29 };
30
31 build-system = [ setuptools ];
32
33 propagatedBuildInputs = [ python-dateutil ];
34
35 nativeCheckInputs = [
36 html5lib
37 jsonschema
38 pytestCheckHook
39 pytest-cov-stub
40 pytest-mock
41 pytest-recording
42 requests-mock
43 ];
44
45 pythonImportsCheck = [ "pystac" ];
46
47 meta = {
48 description = "Python library for working with any SpatioTemporal Asset Catalog (STAC)";
49 homepage = "https://github.com/stac-utils/pystac";
50 license = lib.licenses.asl20;
51 teams = [ lib.teams.geospatial ];
52 };
53}