depot/third_party/nixpkgs/pkgs/development/python-modules/asf-search/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

63 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, requests
, shapely
, python-dateutil
, pytz
, importlib-metadata
, numpy
, dateparser
, remotezip
, pytestCheckHook
, requests-mock
, defusedxml
}:
buildPythonPackage rec {
pname = "asf-search";
version = "6.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asfadmin";
repo = "Discovery-asf_search";
rev = "refs/tags/v${version}";
hash = "sha256-w4xpCqNal0BHsmf1cL4k/DKzs/e9WQXTQNJNs8puJUU=";
};
propagatedBuildInputs = [
requests
shapely
python-dateutil
pytz
importlib-metadata
numpy
dateparser
remotezip
];
nativeCheckInputs = [
pytestCheckHook
];
checkInputs = [
requests-mock
defusedxml
];
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 ];
};
}