Merge pull request #174026 from sikmir/rasterio

python3Packages.rasterio: fix on darwin
main
Robert Scott 2 years ago committed by GitHub
commit db2fa42b53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      pkgs/development/python-modules/rasterio/default.nix

@ -1,4 +1,5 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder , pythonOlder
@ -17,6 +18,7 @@
, matplotlib , matplotlib
, numpy , numpy
, snuggs , snuggs
, setuptools
# tests # tests
, hypothesis , hypothesis
@ -55,6 +57,7 @@ buildPythonPackage rec {
matplotlib matplotlib
numpy numpy
snuggs snuggs
setuptools # needs pkg_resources at runtime
]; ];
preCheck = '' preCheck = ''
@ -73,10 +76,19 @@ buildPythonPackage rec {
"-m 'not network'" "-m 'not network'"
]; ];
disabledTests = lib.optionals stdenv.isDarwin [
"test_reproject_error_propagation"
];
pythonImportsCheck = [ pythonImportsCheck = [
"rasterio" "rasterio"
]; ];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/rio --version | grep ${version} > /dev/null
'';
meta = with lib; { meta = with lib; {
description = "Python package to read and write geospatial raster data"; description = "Python package to read and write geospatial raster data";
homepage = "https://rasterio.readthedocs.io/en/latest/"; homepage = "https://rasterio.readthedocs.io/en/latest/";

Loading…
Cancel
Save