python3Packages.pyogrio: init at 0.8.0
This commit is contained in:
parent
6bfeaff980
commit
7b3f4fcdb2
75
pkgs/development/python-modules/pyogrio/default.nix
Normal file
75
pkgs/development/python-modules/pyogrio/default.nix
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
|
|
||||||
|
certifi,
|
||||||
|
cython,
|
||||||
|
gdal,
|
||||||
|
numpy,
|
||||||
|
packaging,
|
||||||
|
setuptools,
|
||||||
|
versioneer,
|
||||||
|
wheel,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pyogrio";
|
||||||
|
version = "0.8.0";
|
||||||
|
pyproject = true;
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "geopandas";
|
||||||
|
repo = "pyogrio";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-h4Rv5xOWSJSv0nLbosviz5EiF/IsZO5wzBel9YRd0Bg=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace-fail "versioneer[toml]==0.28" "versioneer[toml]"
|
||||||
|
'' + lib.optionalString (!pythonOlder "3.12") ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace-fail "distutils" "setuptools._distutils"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cython
|
||||||
|
gdal # for gdal-config
|
||||||
|
setuptools
|
||||||
|
versioneer
|
||||||
|
wheel
|
||||||
|
] ++ versioneer.optional-dependencies.toml;
|
||||||
|
|
||||||
|
buildInputs = [ gdal ];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
certifi
|
||||||
|
numpy
|
||||||
|
packaging
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
python setup.py build_ext --inplace
|
||||||
|
'';
|
||||||
|
|
||||||
|
pytestFlagsArray = [
|
||||||
|
# disable tests which require network access
|
||||||
|
"-m 'not network'"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "pyogrio" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Vectorized spatial vector file format I/O using GDAL/OGR";
|
||||||
|
homepage = "https://pyogrio.readthedocs.io/";
|
||||||
|
changelog = "https://github.com/geopandas/pyogrio/blob/${src.rev}/CHANGES.md";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = lib.teams.geospatial.members;
|
||||||
|
};
|
||||||
|
}
|
@ -9998,6 +9998,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
pynx584 = callPackage ../development/python-modules/pynx584 { };
|
pynx584 = callPackage ../development/python-modules/pynx584 { };
|
||||||
|
|
||||||
|
pyogrio = callPackage ../development/python-modules/pyogrio { };
|
||||||
|
|
||||||
pyorthanc = callPackage ../development/python-modules/pyorthanc { };
|
pyorthanc = callPackage ../development/python-modules/pyorthanc { };
|
||||||
|
|
||||||
pyoutbreaksnearme = callPackage ../development/python-modules/pyoutbreaksnearme { };
|
pyoutbreaksnearme = callPackage ../development/python-modules/pyoutbreaksnearme { };
|
||||||
|
Loading…
Reference in New Issue
Block a user