2022-06-12 14:51:13 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-02-12 03:51:04 +01:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, shapely
|
|
|
|
, python-dateutil
|
|
|
|
, pytz
|
2022-06-12 14:51:13 +02:00
|
|
|
, importlib-metadata
|
|
|
|
, numpy
|
2023-02-12 03:51:04 +01:00
|
|
|
, dateparser
|
|
|
|
, remotezip
|
2022-06-12 14:51:13 +02:00
|
|
|
, pytestCheckHook
|
|
|
|
, requests-mock
|
2023-02-12 03:51:04 +01:00
|
|
|
, defusedxml
|
2022-06-12 14:51:13 +02:00
|
|
|
}:
|
2022-06-10 02:02:47 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-06-12 14:51:13 +02:00
|
|
|
pname = "asf-search";
|
2023-04-10 20:01:25 +02:00
|
|
|
version = "6.3.1";
|
2022-06-12 14:51:13 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-06-10 02:02:47 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asfadmin";
|
|
|
|
repo = "Discovery-asf_search";
|
2022-06-12 14:51:13 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-10 20:01:25 +02:00
|
|
|
hash = "sha256-9mhb8PEpRdFjbPBZ/B8he/UcRSLryBQU0Dgjcii7LGY=";
|
2022-06-10 02:02:47 +02:00
|
|
|
};
|
|
|
|
|
2022-06-12 14:51:13 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
shapely
|
2023-02-12 03:51:04 +01:00
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
importlib-metadata
|
|
|
|
numpy
|
|
|
|
dateparser
|
|
|
|
remotezip
|
2022-06-12 14:51:13 +02:00
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [
|
2022-06-12 14:51:13 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-06-10 02:02:47 +02:00
|
|
|
|
2023-02-12 03:51:04 +01:00
|
|
|
checkInputs = [
|
|
|
|
requests-mock
|
|
|
|
defusedxml
|
|
|
|
];
|
2022-06-10 02:02:47 +02:00
|
|
|
|
2022-06-12 14:51:13 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"asf_search"
|
|
|
|
];
|
2022-06-10 02:02:47 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-23 22:40:08 +01:00
|
|
|
changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${src.rev}/CHANGELOG.md";
|
2022-06-10 02:02:47 +02:00
|
|
|
description = "Python wrapper for the ASF SearchAPI";
|
|
|
|
homepage = "https://github.com/asfadmin/Discovery-asf_search";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ bzizou ];
|
|
|
|
};
|
|
|
|
}
|