Merge pull request #215778 from dotlambda/fiona-1.9.1

python310Packages.fiona: 1.9.0 -> 1.9.1
This commit is contained in:
Nick Cao 2023-02-13 09:12:30 +08:00 committed by GitHub
commit 031d3c3ba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,46 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, isPy3k, pythonOlder, cython { lib
, attrs, click, cligj, click-plugins, six, munch, enum34 , buildPythonPackage
, pytestCheckHook, boto3, mock, giflib, pytz , pythonOlder
, gdal, certifi , fetchFromGitHub
, cython
, gdal
, setuptools
, attrs
, certifi
, click
, click-plugins
, cligj
, munch
, shapely
, boto3
, pytestCheckHook
, pytz
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "fiona"; pname = "fiona";
version = "1.9.0"; version = "1.9.1";
src = fetchPypi { disabled = pythonOlder "3.7";
pname = "Fiona";
inherit version; format = "pyproject";
hash = "sha256-bkh8v7pahJ+98G5FFp/X4fFmL0Tz1xerS5RgRrJFfq4=";
src = fetchFromGitHub {
owner = "Toblerity";
repo = "Fiona";
rev = "refs/tags/${version}";
hash = "sha256-2CGLkgnpCAh9G+ILol5tmRj9S6/XeKk8eLzGEODiyP8=";
}; };
CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++11";
nativeBuildInputs = [ nativeBuildInputs = [
cython cython
gdal # for gdal-config gdal # for gdal-config
setuptools
]; ];
buildInputs = [ buildInputs = [
gdal gdal
] ++ lib.optionals stdenv.cc.isClang [ giflib ]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
attrs attrs
@ -31,32 +48,33 @@ buildPythonPackage rec {
click click
cligj cligj
click-plugins click-plugins
six
munch munch
pytz setuptools
] ++ lib.optional (!isPy3k) enum34; ];
passthru.optional-dependencies = {
calc = [ shapely ];
s3 = [ boto3 ];
};
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
boto3 pytz
] ++ lib.optional (pythonOlder "3.4") mock; ] ++ passthru.optional-dependencies.s3;
preCheck = '' preCheck = ''
rm -r fiona # prevent importing local fiona rm -r fiona # prevent importing local fiona
# disable gdal deprecation warnings
export GDAL_ENABLE_DEPRECATED_DRIVER_GTM=YES
''; '';
disabledTests = [ disabledTests = [
# Some tests access network, others test packaging # Some tests access network, others test packaging
"http" "https" "wheel" "http" "https" "wheel"
# https://github.com/Toblerity/Fiona/issues/1164
"test_no_append_driver_cannot_append"
]; ];
pythonImportsCheck = [ "fiona" ]; pythonImportsCheck = [ "fiona" ];
meta = with lib; { meta = with lib; {
changelog = "https://github.com/Toblerity/Fiona/blob/${src.rev}/CHANGES.txt";
description = "OGR's neat, nimble, no-nonsense API for Python"; description = "OGR's neat, nimble, no-nonsense API for Python";
homepage = "https://fiona.readthedocs.io/"; homepage = "https://fiona.readthedocs.io/";
license = licenses.bsd3; license = licenses.bsd3;