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