2021-07-04 02:40:35 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python-dateutil, requests, pytz, pyproj , pytest, pyyaml } :
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "OWSLib";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.26.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-jEywYzjrZAXCrs7QttCFaCqmHw8uUo8ceI1o3FDflBs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
# as now upstream https://github.com/geopython/OWSLib/pull/824
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace 'pyproj ' 'pyproj #'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-07-04 02:40:35 +00:00
|
|
|
propagatedBuildInputs = [ python-dateutil pyproj pytz requests pyyaml ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# 'tests' dir not included in pypy distribution archive.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "client for Open Geospatial Consortium web service interface standards";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://www.osgeo.org/projects/owslib/";
|
|
|
|
};
|
|
|
|
}
|