Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 109 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110{ lib, buildPythonPackage, pythonOlder, fetchpatch, 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.23.0";
disabled = pythonOlder "3.8";
format = "setuptools";
src = fetchPypi { inherit version; pname = "Cartopy"; hash = "sha256-Ix83s1cB8rox2UlZzKdebaBMLuo6fxTOHHXuOw6udnY="; };
patches = [ # Some tests in the 0.23.0 release are failing due to missing network markers. Revisit after update. (fetchpatch { name = "mnt-add-missing-needs-network-markers.patch"; url = "https://github.com/SciTools/cartopy/commit/2403847ea69c3d95e899ad5d0cab32ac6017df0e.patch"; hash = "sha256-aGBUX4jFn7GgoqmHVC51DmS+ga3GcQGKfkut++x67Q0="; }) ];
nativeBuildInputs = [ cython geos # for geos-config proj setuptools-scm ];
buildInputs = [ geos proj ];
propagatedBuildInputs = [ matplotlib numpy pyproj pyshp shapely ];
passthru.optional-dependencies = { ows = [ owslib pillow ]; plotting = [ gdal pillow scipy ]; };
nativeCheckInputs = [ 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" "-m" "'not network and not natural_earth'" ];
disabledTests = [ "test_gridliner_constrained_adjust_datalim" "test_gridliner_labels_bbox_style" ];
meta = with lib; { description = "Process geospatial data to create maps and perform analyses"; mainProgram = "feature_download"; license = licenses.lgpl3Plus; homepage = "https://scitools.org.uk/cartopy/docs/latest/"; maintainers = with maintainers; [ mredaelli ]; };}