587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dateparser,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
importlib-metadata,
|
|
numpy,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pythonOlder,
|
|
pythonRelaxDepsHook,
|
|
pytz,
|
|
remotezip,
|
|
requests-mock,
|
|
requests,
|
|
setuptools-scm,
|
|
shapely,
|
|
tenacity,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asf-search";
|
|
version = "7.0.9";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asfadmin";
|
|
repo = "Discovery-asf_search";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-CD9Up4h23dplTt51zif+4ZdW0qczRUz2hCOwUOOlS24=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "tenacity" ];
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
|
|
|
dependencies = [
|
|
dateparser
|
|
importlib-metadata
|
|
numpy
|
|
python-dateutil
|
|
pytz
|
|
remotezip
|
|
requests
|
|
shapely
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
defusedxml
|
|
pytestCheckHook
|
|
requests-mock
|
|
tenacity
|
|
];
|
|
|
|
pythonImportsCheck = [ "asf_search" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for the ASF SearchAPI";
|
|
homepage = "https://github.com/asfadmin/Discovery-asf_search";
|
|
changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${version}/CHANGELOG.md";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ bzizou ];
|
|
};
|
|
}
|