Files
nixpkgs/pkgs/development/python-modules/asf-search/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

67 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 = "9.0.9";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "asfadmin";
repo = "Discovery-asf_search";
tag = "v${version}";
hash = "sha256-1ZJsVcbqvB0DpcVyCWaEdYEnDXDDIupiprcIZlRCWDo=";
};
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 = {
description = "Python wrapper for the ASF SearchAPI";
homepage = "https://github.com/asfadmin/Discovery-asf_search";
changelog = "https://github.com/asfadmin/Discovery-asf_search/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ bzizou ];
};
}