Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.8 kB · 100 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, cython_3, gdal, oldest-supported-numpy, setuptools, wheel, attrs, certifi, click, click-plugins, cligj, munch, shapely, boto3, pytestCheckHook, pytz}:
buildPythonPackage rec { pname = "fiona"; version = "1.9.5"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "Toblerity"; repo = "Fiona"; rev = "refs/tags/${version}"; hash = "sha256-fq/BuyzuK4iOxdpE4h+KRH0CxOEk/wdmbb9KgCfJ1cw="; };
nativeBuildInputs = [ cython_3 gdal # for gdal-config oldest-supported-numpy setuptools wheel ];
buildInputs = [ gdal ];
propagatedBuildInputs = [ attrs certifi click cligj click-plugins munch ];
passthru.optional-dependencies = { calc = [ shapely ]; s3 = [ boto3 ]; };
nativeCheckInputs = [ pytestCheckHook pytz ] ++ passthru.optional-dependencies.s3;
preCheck = '' rm -r fiona # prevent importing local fiona '';
pytestFlagsArray = [ # Tests with gdal marker do not test the functionality of Fiona, # but they are used to check GDAL driver capabilities. "-m 'not 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 = with lib; { changelog = "https://github.com/Toblerity/Fiona/blob/${src.rev}/CHANGES.txt"; description = "OGR's neat, nimble, no-nonsense API for Python"; homepage = "https://fiona.readthedocs.io/"; license = licenses.bsd3; maintainers = teams.geospatial.members; };}