Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / asf-search / default.nix
blobf4e06bb8af8da1a025b22a5b9bc2f5b7234ced01
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,
22 buildPythonPackage rec {
23   pname = "asf-search";
24   version = "7.0.9";
25   pyproject = true;
27   disabled = pythonOlder "3.7";
29   src = fetchFromGitHub {
30     owner = "asfadmin";
31     repo = "Discovery-asf_search";
32     rev = "refs/tags/v${version}";
33     hash = "sha256-CD9Up4h23dplTt51zif+4ZdW0qczRUz2hCOwUOOlS24=";
34   };
36   pythonRelaxDeps = [ "tenacity" ];
38   build-system = [ setuptools-scm ];
40   nativeBuildInputs = [ pythonRelaxDepsHook ];
42   dependencies = [
43     dateparser
44     importlib-metadata
45     numpy
46     python-dateutil
47     pytz
48     remotezip
49     requests
50     shapely
51   ];
53   nativeCheckInputs = [
54     defusedxml
55     pytestCheckHook
56     requests-mock
57     tenacity
58   ];
60   pythonImportsCheck = [ "asf_search" ];
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   };