depot/third_party/nixpkgs/pkgs/development/python-modules/asf-search/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
dateparser,
defusedxml,
fetchFromGitHub,
importlib-metadata,
numpy,
pytestCheckHook,
python-dateutil,
pythonOlder,
pytz,
remotezip,
requests-mock,
requests,
setuptools-scm,
shapely,
tenacity,
}:
buildPythonPackage rec {
pname = "asf-search";
version = "8.0.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "asfadmin";
repo = "Discovery-asf_search";
rev = "refs/tags/v${version}";
hash = "sha256-mOhY64Csxdc/DYS1OlbstxYEodtpXTVyPwd4B1jrDK8=";
};
pythonRelaxDeps = [ "tenacity" ];
build-system = [ setuptools-scm ];
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/v${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ bzizou ];
};
}