Skip to content

Commit

Permalink
python312Packages.owslib: 0.31.0 -> 0.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Oct 24, 2024
1 parent 13b932f commit 8b2ccb2
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions pkgs/development/python-modules/owslib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
];
Expand All @@ -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/";
Expand Down

0 comments on commit 8b2ccb2

Please sign in to comment.