python310Packages.cartopy: 0.21.0 -> 0.21.1
https://github.com/SciTools/cartopy/releases/tag/v0.21.1
This commit is contained in:
parent
5c6b747f08
commit
73a9427360
|
@ -1,28 +1,39 @@
|
|||
{ buildPythonPackage, lib, fetchPypi
|
||||
, pytestCheckHook, filelock, mock, pep8
|
||||
, cython, setuptools-scm
|
||||
, six, pyshp, shapely, geos, numpy
|
||||
, gdal, pillow, matplotlib, pyepsg, pykdtree, scipy, owslib, fiona
|
||||
, proj, flufl_lock
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, cython
|
||||
, setuptools-scm
|
||||
, geos
|
||||
, proj
|
||||
, matplotlib
|
||||
, numpy
|
||||
, pyproj
|
||||
, pyshp
|
||||
, shapely
|
||||
, owslib
|
||||
, pillow
|
||||
, gdal
|
||||
, scipy
|
||||
, fontconfig
|
||||
, pytest-mpl
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cartopy";
|
||||
version = "0.21.0";
|
||||
version = "0.21.1";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "Cartopy";
|
||||
sha256 = "sha256-zh06KKEy6UyJrDN2mlD4H2VjSrK9QFVjF+Fb1srRzkI=";
|
||||
hash = "sha256-idVklxLIWCIxxuEYJaBMhfbwzulNu4nk2yPqvKHMJQo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/SciTools/cartopy/issues/1880
|
||||
substituteInPlace lib/cartopy/tests/test_crs.py \
|
||||
--replace "test_osgb(" "dont_test_osgb(" \
|
||||
--replace "test_epsg(" "dont_test_epsg("
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
geos # for geos-config
|
||||
|
@ -35,14 +46,27 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# required
|
||||
six pyshp shapely numpy
|
||||
|
||||
# optional
|
||||
gdal pillow matplotlib pyepsg pykdtree scipy fiona owslib
|
||||
matplotlib
|
||||
numpy
|
||||
pyproj
|
||||
pyshp
|
||||
shapely
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook filelock mock pep8 flufl_lock ];
|
||||
passthru.optional-dependencies = {
|
||||
ows = [ owslib pillow ];
|
||||
plotting = [ gdal pillow scipy ];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pytest-mpl
|
||||
pytestCheckHook
|
||||
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
|
||||
|
||||
preCheck = ''
|
||||
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
"--pyargs" "cartopy"
|
||||
|
@ -50,8 +74,6 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
disabledTests = [
|
||||
"test_nightshade_image"
|
||||
"background_img"
|
||||
"test_gridliner_labels_bbox_style"
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue