diff --git a/pkgs/development/python-modules/fiona/default.nix b/pkgs/development/python-modules/fiona/default.nix index 409394e5fb08..5ab6dc145f9f 100644 --- a/pkgs/development/python-modules/fiona/default.nix +++ b/pkgs/development/python-modules/fiona/default.nix @@ -19,17 +19,16 @@ buildPythonPackage rec { pname = "fiona"; - version = "1.9.1"; + version = "1.9.4"; + format = "pyproject"; disabled = pythonOlder "3.7"; - format = "pyproject"; - src = fetchFromGitHub { owner = "Toblerity"; repo = "Fiona"; rev = "refs/tags/${version}"; - hash = "sha256-2CGLkgnpCAh9G+ILol5tmRj9S6/XeKk8eLzGEODiyP8="; + hash = "sha256-v4kTjoGu4AiEepBrGyY1e1OFC1eCk/U6f8XA/vtfY0E="; }; nativeBuildInputs = [ @@ -49,7 +48,6 @@ buildPythonPackage rec { cligj click-plugins munch - setuptools ]; passthru.optional-dependencies = { @@ -66,12 +64,27 @@ buildPythonPackage rec { rm -r fiona # prevent importing local fiona ''; - disabledTests = [ - # Some tests access network, others test packaging - "http" "https" "wheel" + pytestFlagsArray = [ + # Tests with gdal marker do not test the functionality of Fiona, + # but they are used to check GDAL driver capabilities. + "-m 'not gdal'" ]; - pythonImportsCheck = [ "fiona" ]; + disabledTests = [ + # Some tests access network, others test packaging + "http" + "https" + "wheel" + + # see: https://github.com/Toblerity/Fiona/issues/1273 + "test_append_memoryfile_drivers" + ]; + + pythonImportsCheck = [ + "fiona" + ]; + + doInstallCheck = true; meta = with lib; { changelog = "https://github.com/Toblerity/Fiona/blob/${src.rev}/CHANGES.txt";