depot/third_party/nixpkgs/pkgs/development/python-modules/asf-search/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

62 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, dateparser
, fetchFromGitHub
, importlib-metadata
, numpy
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
, requests
, requests-mock
, shapely
, wktutils
}:
buildPythonPackage rec {
pname = "asf-search";
version = "6.0.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asfadmin";
repo = "Discovery-asf_search";
rev = "refs/tags/v${version}";
hash = "sha256-kbeIGIn8HMXROPiQSmwx3lo7wEX8SDuHYgxh4ws89Mo=";
};
propagatedBuildInputs = [
dateparser
importlib-metadata
numpy
python-dateutil
pytz
requests
shapely
wktutils
];
nativeCheckInputs = [
pytestCheckHook
requests-mock
];
postPatch = ''
substituteInPlace setup.py \
--replace "WKTUtils==" "WKTUtils>="
'';
pythonImportsCheck = [
"asf_search"
];
meta = with lib; {
description = "Python wrapper for the ASF SearchAPI";
homepage = "https://github.com/asfadmin/Discovery-asf_search";
license = licenses.bsd3;
maintainers = with maintainers; [ bzizou ];
};
}