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