From 8b2ccb24d4d2e24d983a9c3aed3634dc3f2eedfd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 24 Oct 2024 23:03:17 +0200 Subject: [PATCH] python312Packages.owslib: 0.31.0 -> 0.32.0 Diff: https://github.com/geopython/OWSLib/compare/refs/tags/0.31.0...0.32.0 Changelog: https://github.com/geopython/OWSLib/releases/tag/0.32.0 --- .../python-modules/owslib/default.nix | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/owslib/default.nix b/pkgs/development/python-modules/owslib/default.nix index 53f7f9f24e0766..8fe41b0e2e5812 100644 --- a/pkgs/development/python-modules/owslib/default.nix +++ b/pkgs/development/python-modules/owslib/default.nix @@ -2,41 +2,39 @@ lib, buildPythonPackage, fetchFromGitHub, - lxml, - pyproj, 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' --cov-report term-missing --cov owslib" "" ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ lxml - pyproj python-dateutil - pytz pyyaml requests ]; @@ -51,10 +49,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/";