1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dateparser,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
importlib-metadata,
|
|
numpy,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pytz,
|
|
remotezip,
|
|
requests-mock,
|
|
requests,
|
|
setuptools-scm,
|
|
shapely,
|
|
tenacity,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asf-search";
|
|
version = "9.0.9";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|