python.pkgs.fiona: fix build

This commit is contained in:
Robert Schütz 2019-02-25 10:51:42 +01:00
parent 18fe630281
commit 865e83b80d

View File

@ -1,6 +1,7 @@
{ stdenv, buildPythonPackage, fetchPypi, { stdenv, buildPythonPackage, fetchPypi, isPy3k
six, cligj, munch, click-plugins, enum34, pytest, nose, , attrs, click, cligj, click-plugins, six, munch, enum34
gdal , pytest, boto3
, gdal
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -14,24 +15,35 @@ buildPythonPackage rec {
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++11"; CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++11";
nativeBuildInputs = [
gdal # for gdal-config
];
buildInputs = [ buildInputs = [
gdal gdal
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
six attrs
click
cligj cligj
munch
click-plugins click-plugins
enum34 six
]; munch
] ++ stdenv.lib.optional (!isPy3k) enum34;
checkInputs = [ checkInputs = [
pytest pytest
nose boto3
]; ];
doCheck = false; checkPhase = ''
rm -r fiona # prevent importing local fiona
# Some tests access network, others test packaging
pytest -k "not test_*_http \
and not test_*_https \
and not test_*_wheel"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "OGR's neat, nimble, no-nonsense API for Python"; description = "OGR's neat, nimble, no-nonsense API for Python";