python3Packages.cartopy: 0.18.0 -> 0.19.0.post1 (#121782)

This commit is contained in:
lsix 2021-05-05 17:03:03 +01:00 committed by GitHub
parent 9ba09d80e1
commit ceb01fb12d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,21 @@
{ buildPythonPackage, lib, fetchPypi, fetchpatch { buildPythonPackage, lib, fetchPypi
, pytestCheckHook, filelock, mock, pep8 , pytestCheckHook, filelock, mock, pep8
, cython , cython
, six, pyshp, shapely, geos, numpy , six, pyshp, shapely, geos, numpy
, gdal, pillow, matplotlib, pyepsg, pykdtree, scipy, owslib, fiona , gdal, pillow, matplotlib, pyepsg, pykdtree, scipy, owslib, fiona
, proj , proj, flufl_lock
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "cartopy"; pname = "cartopy";
version = "0.18.0"; version = "0.19.0.post1";
src = fetchPypi { src = fetchPypi {
inherit version; inherit version;
pname = "Cartopy"; pname = "Cartopy";
sha256 = "0d24fk0cbp29gmkysrwq05vry13swmwi3vx3cpcy04c0ixz33ykz"; sha256 = "0xnm8z3as3hriivdfd26s6vn5b63gb46x6vxw6gh1mwfm5rlg2sb";
}; };
patches = [
# Fix numpy-1.20 compatibility. Will be part of 0.19.
(fetchpatch {
url = "https://github.com/SciTools/cartopy/commit/e663bbbef07989a5f8484a8f36ea9c07e61d14ce.patch";
sha256 = "061kbjgzkc3apaz6sxy00pkgy3n9dxcgps5wzj4rglb5iy86n2kq";
})
];
buildInputs = [ buildInputs = [
geos proj geos proj
]; ];
@ -36,7 +28,7 @@ buildPythonPackage rec {
gdal pillow matplotlib pyepsg pykdtree scipy fiona owslib gdal pillow matplotlib pyepsg pykdtree scipy fiona owslib
]; ];
checkInputs = [ pytestCheckHook filelock mock pep8 ]; checkInputs = [ pytestCheckHook filelock mock pep8 flufl_lock ];
pytestFlagsArray = [ pytestFlagsArray = [
"--pyargs" "cartopy" "--pyargs" "cartopy"
@ -46,6 +38,7 @@ buildPythonPackage rec {
disabledTests = [ disabledTests = [
"test_nightshade_image" "test_nightshade_image"
"background_img" "background_img"
"test_gridliner_labels_bbox_style"
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
@ -56,7 +49,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Process geospatial data to create maps and perform analyses"; description = "Process geospatial data to create maps and perform analyses";
license = licenses.lgpl3; license = licenses.lgpl3Plus;
homepage = "https://scitools.org.uk/cartopy/docs/latest/"; homepage = "https://scitools.org.uk/cartopy/docs/latest/";
maintainers = with maintainers; [ mredaelli ]; maintainers = with maintainers; [ mredaelli ];
}; };