mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
python.pkgs.fiona: fix build
This commit is contained in:
parent
18fe630281
commit
865e83b80d
|
@ -1,6 +1,7 @@
|
|||
{ stdenv, buildPythonPackage, fetchPypi,
|
||||
six, cligj, munch, click-plugins, enum34, pytest, nose,
|
||||
gdal
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, attrs, click, cligj, click-plugins, six, munch, enum34
|
||||
, pytest, boto3
|
||||
, gdal
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -14,24 +15,35 @@ buildPythonPackage rec {
|
|||
|
||||
CXXFLAGS = stdenv.lib.optionalString stdenv.cc.isClang "-std=c++11";
|
||||
|
||||
nativeBuildInputs = [
|
||||
gdal # for gdal-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gdal
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six
|
||||
attrs
|
||||
click
|
||||
cligj
|
||||
munch
|
||||
click-plugins
|
||||
enum34
|
||||
];
|
||||
six
|
||||
munch
|
||||
] ++ stdenv.lib.optional (!isPy3k) enum34;
|
||||
|
||||
checkInputs = [
|
||||
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; {
|
||||
description = "OGR's neat, nimble, no-nonsense API for Python";
|
||||
|
|
Loading…
Reference in a new issue