mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 13:06:32 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
72 lines
1.5 KiB
Nix
72 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
pytest-cov-stub,
|
|
pytest-httpserver,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
pyyaml,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "owslib";
|
|
version = "0.35.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "geopython";
|
|
repo = "OWSLib";
|
|
tag = version;
|
|
hash = "sha256-/5FJai6ad4ZQAK/IhiIuGv4yiBcT/iXFYcbZ+jeCoyI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace tox.ini \
|
|
--replace-fail "--doctest-modules" "" \
|
|
--replace-fail "--doctest-glob='tests/**/*.txt'" ""
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
lxml
|
|
python-dateutil
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytest-httpserver
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "owslib" ];
|
|
|
|
preCheck = ''
|
|
# _pytest.pathlib.ImportPathMismatchError: ('owslib.swe.sensor.sml', '/build/source/build/...
|
|
export PY_IGNORE_IMPORTMISMATCH=1
|
|
'';
|
|
|
|
disabledTestMarks = [
|
|
# Disable tests which require network access
|
|
"online"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Tests requires network access
|
|
"tests/test_ogcapi_connectedsystems_osh.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Client for Open Geospatial Consortium web service interface standards";
|
|
homepage = "https://www.osgeo.org/projects/owslib/";
|
|
changelog = "https://github.com/geopython/OWSLib/releases/tag/${src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.geospatial ];
|
|
};
|
|
}
|