python310Packages.asf-search: 3.0.6 -> 3.2.2
- enable tests - adjust inpuuuts
This commit is contained in:
parent
218093d36a
commit
bf580b0ede
1 changed files with 44 additions and 8 deletions
|
@ -1,21 +1,57 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, pytz, shapely, importlib-metadata, requests, python-dateutil }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, dateparser
|
||||||
|
, fetchFromGitHub
|
||||||
|
, importlib-metadata
|
||||||
|
, numpy
|
||||||
|
, pytestCheckHook
|
||||||
|
, python-dateutil
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, requests
|
||||||
|
, requests-mock
|
||||||
|
, shapely
|
||||||
|
, wktutils
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "asf_search";
|
pname = "asf-search";
|
||||||
version = "3.0.6";
|
version = "3.2.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "asfadmin";
|
owner = "asfadmin";
|
||||||
repo = "Discovery-asf_search";
|
repo = "Discovery-asf_search";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "1jzah2l1db1p2mv59w9qf0x3a9hk6s5rzy0jnp2smsddvyxfwcyn";
|
hash = "sha256-9fJp4P2cD11ppU80Av/aJOcqpaBwuYgdWWBTMo/HCeo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pytz shapely importlib-metadata requests python-dateutil ];
|
propagatedBuildInputs = [
|
||||||
|
dateparser
|
||||||
|
importlib-metadata
|
||||||
|
numpy
|
||||||
|
python-dateutil
|
||||||
|
pytz
|
||||||
|
requests
|
||||||
|
shapely
|
||||||
|
wktutils
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false;
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "asf_search" ];
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "WKTUtils==" "WKTUtils>="
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"asf_search"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper for the ASF SearchAPI";
|
description = "Python wrapper for the ASF SearchAPI";
|
||||||
|
|
Loading…
Reference in a new issue