Skip to content

Commit

Permalink
python312Packages.owslib: 0.31.0 -> 0.32.0
Browse files Browse the repository at this point in the history
Diff: geopython/OWSLib@refs/tags/0.31.0...0.32.0

Changelog: https://github.com/geopython/OWSLib/releases/tag/0.32.0
  • Loading branch information
fabaff committed Oct 26, 2024
1 parent 13b932f commit ca8db53
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions pkgs/development/python-modules/owslib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];

Expand All @@ -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/";
Expand Down

0 comments on commit ca8db53

Please sign in to comment.