1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
{
lib,
buildPythonPackage,
cython,
fetchPypi,
fontconfig,
gdal,
geos,
matplotlib,
numpy,
owslib,
pillow,
proj,
pyproj,
pyshp,
pytest-mpl,
pytestCheckHook,
scipy,
setuptools-scm,
shapely,
}:
buildPythonPackage rec {
pname = "cartopy";
version = "0.25.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-VfGjkOXz8HWyIcfZH7ECWK2XjbeGx5MOugbrRdKHU/4=";
};
build-system = [ setuptools-scm ];
nativeBuildInputs = [
cython
geos # for geos-config
proj
];
buildInputs = [
geos
proj
];
dependencies = [
matplotlib
numpy
pyproj
pyshp
shapely
];
optional-dependencies = {
ows = [
owslib
pillow
];
plotting = [
gdal
pillow
scipy
];
};
nativeCheckInputs = [
pytest-mpl
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
preCheck = ''
export FONTCONFIG_FILE=${fontconfig.out}/etc/fonts/fonts.conf
export HOME=$TMPDIR
'';
pytestFlags = [
"--pyargs"
"cartopy"
];
disabledTestMarks = [
"network"
"natural_earth"
];
disabledTests = [
"test_gridliner_constrained_adjust_datalim"
"test_gridliner_labels_bbox_style"
];
meta = {
description = "Process geospatial data to create maps and perform analyses";
homepage = "https://scitools.org.uk/cartopy/docs/latest/";
changelog = "https://github.com/SciTools/cartopy/releases/tag/v${version}";
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
mainProgram = "feature_download";
};
}
|