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