1 { stdenv, lib, buildPythonPackage, fetchPypi, isPy3k, pythonOlder
2 , attrs, click, cligj, click-plugins, six, munch, enum34
3 , pytest, boto3, mock, giflib, pytz
4 , gdal_2 # can't bump to 3 yet, https://github.com/Toblerity/Fiona/issues/745
8 buildPythonPackage rec {
13 inherit pname version;
14 sha256 = "b732ece0ff8886a29c439723a3e1fc382718804bb057519d537a81308854967a";
17 CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
20 gdal_2 # for gdal-config
25 ] ++ lib.optionals stdenv.cc.isClang [ giflib ];
27 propagatedBuildInputs = [
36 ] ++ lib.optional (!isPy3k) enum34;
41 ] ++ lib.optional (pythonOlder "3.4") mock;
44 rm -r fiona # prevent importing local fiona
45 # Some tests access network, others test packaging
46 pytest -k "not (http or https or wheel)"
50 description = "OGR's neat, nimble, no-nonsense API for Python";
51 homepage = "https://fiona.readthedocs.io/";
52 license = licenses.bsd3;
53 maintainers = with maintainers; [ knedlsepp ];