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