nixpkgs/pkgs/development/python-modules/fiona/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

84 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, cython
, gdal
, setuptools
, attrs
, certifi
, click
, click-plugins
, cligj
, munch
, shapely
, boto3
, pytestCheckHook
, pytz
2017-09-03 09:05:57 +00:00
}:
buildPythonPackage rec {
pname = "fiona";
version = "1.9.1";
2017-09-03 09:05:57 +00:00
disabled = pythonOlder "3.7";
format = "pyproject";
2017-09-03 09:05:57 +00:00
src = fetchFromGitHub {
owner = "Toblerity";
repo = "Fiona";
rev = "refs/tags/${version}";
hash = "sha256-2CGLkgnpCAh9G+ILol5tmRj9S6/XeKk8eLzGEODiyP8=";
};
2019-02-25 09:51:42 +00:00
nativeBuildInputs = [
cython
gdal # for gdal-config
setuptools
2019-02-25 09:51:42 +00:00
];
2017-09-03 09:05:57 +00:00
buildInputs = [
gdal
];
2017-09-03 09:05:57 +00:00
propagatedBuildInputs = [
2019-02-25 09:51:42 +00:00
attrs
certifi
2019-02-25 09:51:42 +00:00
click
2017-09-03 09:05:57 +00:00
cligj
click-plugins
2019-02-25 09:51:42 +00:00
munch
setuptools
];
passthru.optional-dependencies = {
calc = [ shapely ];
s3 = [ boto3 ];
};
2017-09-03 09:05:57 +00:00
nativeCheckInputs = [
pytestCheckHook
pytz
] ++ passthru.optional-dependencies.s3;
2017-09-03 09:05:57 +00:00
preCheck = ''
2019-02-25 09:51:42 +00:00
rm -r fiona # prevent importing local fiona
'';
2017-09-03 09:05:57 +00:00
disabledTests = [
# Some tests access network, others test packaging
"http" "https" "wheel"
];
pythonImportsCheck = [ "fiona" ];
meta = with lib; {
changelog = "https://github.com/Toblerity/Fiona/blob/${src.rev}/CHANGES.txt";
2017-09-03 09:05:57 +00:00
description = "OGR's neat, nimble, no-nonsense API for Python";
homepage = "https://fiona.readthedocs.io/";
2017-09-03 09:05:57 +00:00
license = licenses.bsd3;
maintainers = teams.geospatial.members;
2017-09-03 09:05:57 +00:00
};
}