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
|
|
|
|
, 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-04-29 16:46:19 +00:00
|
|
|
version = "6.3.1";
|
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-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-9mhb8PEpRdFjbPBZ/B8he/UcRSLryBQU0Dgjcii7LGY=";
|
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
|
|
|
|
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; {
|
2023-03-27 19:17:25 +00:00
|
|
|
changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${src.rev}/CHANGELOG.md";
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Python wrapper for the ASF SearchAPI";
|
|
|
|
homepage = "https://github.com/asfadmin/Discovery-asf_search";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bzizou ];
|
|
|
|
};
|
|
|
|
}
|