mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
5df08e00cd
Conflicts: pkgs/development/python-modules/opensimplex/default.nix pkgs/development/python-modules/pygame-gui/default.nix pkgs/top-level/aliases.nix pkgs/top-level/python-aliases.nix
65 lines
1.5 KiB
Nix
65 lines
1.5 KiB
Nix
{ 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
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cartopy";
|
|
version = "0.20.2";
|
|
|
|
src = fetchPypi {
|
|
inherit version;
|
|
pname = "Cartopy";
|
|
sha256 = "4d08c198ecaa50a6a6b109d0f14c070e813defc046a83ac5d7ab494f85599e35";
|
|
};
|
|
|
|
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
|
|
proj
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
geos proj
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
# required
|
|
six pyshp shapely numpy
|
|
|
|
# optional
|
|
gdal pillow matplotlib pyepsg pykdtree scipy fiona owslib
|
|
];
|
|
|
|
checkInputs = [ pytestCheckHook filelock mock pep8 flufl_lock ];
|
|
|
|
pytestFlagsArray = [
|
|
"--pyargs" "cartopy"
|
|
"-m" "'not network and not natural_earth'"
|
|
];
|
|
|
|
disabledTests = [
|
|
"test_nightshade_image"
|
|
"background_img"
|
|
"test_gridliner_labels_bbox_style"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Process geospatial data to create maps and perform analyses";
|
|
license = licenses.lgpl3Plus;
|
|
homepage = "https://scitools.org.uk/cartopy/docs/latest/";
|
|
maintainers = with maintainers; [ mredaelli ];
|
|
};
|
|
}
|