push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,112 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
gdal,
setuptools,
# dependencies
attrs,
certifi,
click,
click-plugins,
cligj,
# optional-dependencies
pyparsing,
shapely,
boto3,
# tests
fsspec,
pytestCheckHook,
pytz,
snuggs,
}:
buildPythonPackage rec {
pname = "fiona";
version = "1.10.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Toblerity";
repo = "Fiona";
tag = version;
hash = "sha256-5NN6PBh+6HS9OCc9eC2TcBvkcwtI4DV8qXnz4tlaMXc=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "cython~=3.0.2" cython
'';
build-system = [
cython
gdal # for gdal-config
setuptools
];
buildInputs = [ gdal ];
dependencies = [
attrs
certifi
click
click-plugins
cligj
];
optional-dependencies = {
calc = [
pyparsing
shapely
];
s3 = [ boto3 ];
};
nativeCheckInputs = [
fsspec
pytestCheckHook
pytz
shapely
snuggs
]
++ optional-dependencies.s3;
preCheck = ''
rm -r fiona # prevent importing local fiona
'';
disabledTestMarks = [
# Tests with gdal marker do not test the functionality of Fiona,
# but they are used to check GDAL driver capabilities.
"gdal"
];
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 = {
changelog = "https://github.com/Toblerity/Fiona/blob/${src.rev}/CHANGES.txt";
description = "OGR's neat, nimble, no-nonsense API for Python";
mainProgram = "fio";
homepage = "https://fiona.readthedocs.io/";
license = lib.licenses.bsd3;
teams = [ lib.teams.geospatial ];
};
}