python3Packages.pyproj: fix tests

This commit is contained in:
Jonathan Ringer 2020-11-30 19:02:52 -08:00 committed by Frederik Rietdijk
parent eb8d1214b6
commit 7c0fe73bad

View file

@ -1,7 +1,7 @@
{ lib, buildPythonPackage, fetchFromGitHub, python, pkgs, pythonOlder, isPy27, substituteAll
, aenum
, cython
, pytest
, pytestCheckHook
, mock
, numpy
, shapely
@ -34,20 +34,23 @@ buildPythonPackage rec {
numpy shapely
] ++ lib.optional (pythonOlder "3.6") aenum;
checkInputs = [ pytest mock ];
checkInputs = [ pytestCheckHook mock ];
# ignore rounding errors, and impure docgen
# datadir is ignored because it does the proj look up logic, which isn't relevant
checkPhase = ''
pytest . -k 'not alternative_grid_name \
and not transform_wgs84_to_alaska \
and not transformer_group__unavailable \
and not transform_group__missing_best \
and not datum \
and not repr' \
--ignore=test/test_doctest_wrapper.py \
--ignore=test/test_datadir.py
'';
# prevent importing local directory
preCheck = "cd test";
pytestFlagsArray = [
"--ignore=test_doctest_wrapper.py"
"--ignore=test_datadir.py"
];
disabledTests = [
"alternative_grid_name"
"transform_wgs84_to_alaska"
"transformer_group__unavailable"
"transform_group__missing_best"
"datum"
"repr"
];
meta = {
description = "Python interface to PROJ.4 library";