2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-16 17:41:37 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, shapely
|
|
|
|
, python-dateutil
|
|
|
|
, pytz
|
2022-06-16 17:23:12 +00:00
|
|
|
, importlib-metadata
|
|
|
|
, numpy
|
2023-02-16 17:41:37 +00:00
|
|
|
, dateparser
|
|
|
|
, jinja2
|
|
|
|
, remotezip
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests-mock
|
2023-02-16 17:41:37 +00:00
|
|
|
, defusedxml
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "asf-search";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "6.0.2";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asfadmin";
|
|
|
|
repo = "Discovery-asf_search";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-kbeIGIn8HMXROPiQSmwx3lo7wEX8SDuHYgxh4ws89Mo=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
shapely
|
2023-02-16 17:41:37 +00:00
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
importlib-metadata
|
|
|
|
numpy
|
|
|
|
dateparser
|
|
|
|
jinja2
|
|
|
|
remotezip
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
requests-mock
|
|
|
|
defusedxml
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"asf_search"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python wrapper for the ASF SearchAPI";
|
|
|
|
homepage = "https://github.com/asfadmin/Discovery-asf_search";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bzizou ];
|
|
|
|
};
|
|
|
|
}
|