From ca8db5375d48e0d8e91515fe0dd8dd7bdb4ebb09 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 26 Oct 2024 12:35:21 +0200 Subject: [PATCH] python312Packages.owslib: 0.31.0 -> 0.32.0 Diff: geopython/OWSLib@refs/tags/0.31.0...0.32.0 Changelog: https://github.com/geopython/OWSLib/releases/tag/0.32.0 --- .../python-modules/owslib/default.nix | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/owslib/default.nix b/pkgs/development/python-modules/owslib/default.nix index 53f7f9f24e07..4d2d4f24071e 100644 --- a/pkgs/development/python-modules/owslib/default.nix +++ b/pkgs/development/python-modules/owslib/default.nix @@ -2,46 +2,48 @@ lib, buildPythonPackage, fetchFromGitHub, - lxml, - pyproj, + pytest-cov-stub, pytestCheckHook, python-dateutil, pythonOlder, - pytz, pyyaml, requests, + setuptools, }: buildPythonPackage rec { pname = "owslib"; - version = "0.31.0"; - format = "setuptools"; + version = "0.32.0"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.10"; src = fetchFromGitHub { owner = "geopython"; repo = "OWSLib"; - rev = version; - hash = "sha256-vjJsLavVOqTTrVtYbtA0G+nl0HanKeGtzNFFj92Frw8="; + rev = "refs/tags/${version}"; + hash = "sha256-q2O9FNBszNWfL1ekcohSd1RbdLFu8c+zxi+UFeQ7/mk="; }; postPatch = '' substituteInPlace tox.ini \ - --replace " --doctest-modules --doctest-glob 'tests/**/*.txt' --cov-report term-missing --cov owslib" "" + --replace-fail " --doctest-modules --doctest-glob 'tests/**/*.txt'" "" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ lxml - pyproj python-dateutil - pytz pyyaml requests ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "owslib" ]; @@ -51,10 +53,15 @@ buildPythonPackage rec { ''; pytestFlagsArray = [ - # disable tests which require network access + # Disable tests which require network access "-m 'not online'" ]; + disabledTestPaths = [ + # Tests requires network access + "tests/test_ogcapi_connectedsystems_osh.py" + ]; + meta = with lib; { description = "Client for Open Geospatial Consortium web service interface standards"; homepage = "https://www.osgeo.org/projects/owslib/";