diff options
Diffstat (limited to 'pkgs/development/python-modules/owslib/default.nix')
-rw-r--r-- | pkgs/development/python-modules/owslib/default.nix | 57 |
1 files changed, 22 insertions, 35 deletions
diff --git a/pkgs/development/python-modules/owslib/default.nix b/pkgs/development/python-modules/owslib/default.nix index 8bf7b8bcbe857..645715a4f0af5 100644 --- a/pkgs/development/python-modules/owslib/default.nix +++ b/pkgs/development/python-modules/owslib/default.nix @@ -1,21 +1,22 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchFromGitHub -, lxml -, pyproj -, pytestCheckHook -, python-dateutil -, pythonOlder -, pytz -, pyyaml -, requests -, python +{ + lib, + stdenv, + buildPythonPackage, + fetchFromGitHub, + + lxml, + pyproj, + pytestCheckHook, + python-dateutil, + pythonOlder, + pytz, + pyyaml, + requests, }: buildPythonPackage rec { pname = "owslib"; - version = "0.30.0"; + version = "0.31.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -23,8 +24,8 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "geopython"; repo = "OWSLib"; - rev = "refs/tags/${version}"; - hash = "sha256-miKAgZBiqZ6+0qDvlf8+VZ6omH5hlImO0E7AVK7FuD0="; + rev = version; + hash = "sha256-vjJsLavVOqTTrVtYbtA0G+nl0HanKeGtzNFFj92Frw8="; }; postPatch = '' @@ -41,32 +42,18 @@ buildPythonPackage rec { requests ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "owslib" - ]; + pythonImportsCheck = [ "owslib" ]; preCheck = '' # _pytest.pathlib.ImportPathMismatchError: ('owslib.swe.sensor.sml', '/build/source/build/... export PY_IGNORE_IMPORTMISMATCH=1 ''; - disabledTests = [ - # Tests require network access - "test_ows_interfaces_wcs" - "test_wfs_110_remotemd" - "test_wfs_200_remotemd" - "test_wms_130_remotemd" - "test_wmts_example_informatievlaanderen" - "test_opensearch_creodias" - ] ++ lib.optionals stdenv.isDarwin [ - "test_ogcapi_processes_pygeoapi" - "test_ogcapi_records_pycsw" - "test_ogcapi_records_pygeoapi" - "test_wms_getfeatureinfo_130" + pytestFlagsArray = [ + # disable tests which require network access + "-m 'not online'" ]; meta = with lib; { |