depot/third_party/nixpkgs/pkgs/development/python-modules/asf-search/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

62 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, dateparser
, defusedxml
, fetchFromGitHub
, importlib-metadata
, numpy
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
, remotezip
, requests
, requests-mock
, shapely
, tenacity
}:
buildPythonPackage rec {
pname = "asf-search";
version = "7.0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asfadmin";
repo = "Discovery-asf_search";
rev = "refs/tags/v${version}";
hash = "sha256-eq8VKML50TfOnHZFXr+Ht7FUMm+NHJOksKvv3uMcq3g=";
};
propagatedBuildInputs = [
dateparser
importlib-metadata
numpy
python-dateutil
pytz
remotezip
requests
shapely
];
nativeCheckInputs = [
defusedxml
pytestCheckHook
requests-mock
tenacity
];
pythonImportsCheck = [
"asf_search"
];
meta = with lib; {
changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${src.rev}/CHANGELOG.md";
description = "Python wrapper for the ASF SearchAPI";
homepage = "https://github.com/asfadmin/Discovery-asf_search";
license = licenses.bsd3;
maintainers = with maintainers; [ bzizou ];
};
}