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