1{ 2 lib, 3 buildPythonPackage, 4 dateparser, 5 defusedxml, 6 fetchFromGitHub, 7 importlib-metadata, 8 numpy, 9 pytestCheckHook, 10 python-dateutil, 11 pythonOlder, 12 pytz, 13 remotezip, 14 requests-mock, 15 requests, 16 setuptools-scm, 17 shapely, 18 tenacity, 19}: 20 21buildPythonPackage rec { 22 pname = "asf-search"; 23 version = "9.0.9"; 24 pyproject = true; 25 26 disabled = pythonOlder "3.9"; 27 28 src = fetchFromGitHub { 29 owner = "asfadmin"; 30 repo = "Discovery-asf_search"; 31 tag = "v${version}"; 32 hash = "sha256-1ZJsVcbqvB0DpcVyCWaEdYEnDXDDIupiprcIZlRCWDo="; 33 }; 34 35 pythonRelaxDeps = [ "tenacity" ]; 36 37 build-system = [ setuptools-scm ]; 38 39 dependencies = [ 40 dateparser 41 importlib-metadata 42 numpy 43 python-dateutil 44 pytz 45 remotezip 46 requests 47 shapely 48 ]; 49 50 nativeCheckInputs = [ 51 defusedxml 52 pytestCheckHook 53 requests-mock 54 tenacity 55 ]; 56 57 pythonImportsCheck = [ "asf_search" ]; 58 59 meta = with lib; { 60 description = "Python wrapper for the ASF SearchAPI"; 61 homepage = "https://github.com/asfadmin/Discovery-asf_search"; 62 changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${src.tag}/CHANGELOG.md"; 63 license = licenses.bsd3; 64 maintainers = with maintainers; [ bzizou ]; 65 }; 66}