mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 01:31:39 -05:00
fix: Build GDAL 3.6 with Python 3.9
This commit is contained in:
parent
797db206cf
commit
d3696f2daa
6 changed files with 45 additions and 0 deletions
|
@ -650,6 +650,7 @@ lib.composeManyExtensions [
|
|||
|
||||
gdal = super.gdal.overridePythonAttrs (
|
||||
old: {
|
||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.gdal ];
|
||||
preBuild = (old.preBuild or "") + ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "../../apps/gdal-config" '${pkgs.gdal}/bin/gdal-config'
|
||||
|
|
|
@ -129,6 +129,7 @@ builtins.removeAttrs
|
|||
shapely = callTest ./shapely { };
|
||||
setuptools = callTest ./setuptools { };
|
||||
|
||||
gdal = callTest ./gdal { };
|
||||
scientific = callTest ./scientific { };
|
||||
scipy1_9 = callTest ./scipy1_9 { };
|
||||
test-group = callTest ./test-group { };
|
||||
|
|
8
tests/gdal/default.nix
Normal file
8
tests/gdal/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ lib, poetry2nix, python39 }:
|
||||
|
||||
poetry2nix.mkPoetryApplication {
|
||||
python = python39;
|
||||
pyproject = ./pyproject.toml;
|
||||
poetrylock = ./poetry.lock;
|
||||
src = lib.cleanSource ./.;
|
||||
}
|
0
tests/gdal/gdal_test/__init__.py
Normal file
0
tests/gdal/gdal_test/__init__.py
Normal file
20
tests/gdal/poetry.lock
generated
Normal file
20
tests/gdal/poetry.lock
generated
Normal file
|
@ -0,0 +1,20 @@
|
|||
[[package]]
|
||||
name = "gdal"
|
||||
version = "3.6.0.1"
|
||||
description = "GDAL: Geospatial Data Abstraction Library"
|
||||
category = "main"
|
||||
optional = false
|
||||
python-versions = ">=3.6.0"
|
||||
|
||||
[package.extras]
|
||||
numpy = ["numpy (>1.0.0)"]
|
||||
|
||||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "~3.9"
|
||||
content-hash = "4872acd5e5436d59381f6375093ccf94408b15d33b35de546b662ec39a9f6fd5"
|
||||
|
||||
[metadata.files]
|
||||
gdal = [
|
||||
{file = "GDAL-3.6.0.1.tar.gz", hash = "sha256:7ae74900cbb737fba0a49e2a035ef10b9218d576c3c761caadc25031c95df040"},
|
||||
]
|
15
tests/gdal/pyproject.toml
Normal file
15
tests/gdal/pyproject.toml
Normal file
|
@ -0,0 +1,15 @@
|
|||
[tool.poetry]
|
||||
name = "gdal-test"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Your Name <you@example.com>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "~3.9"
|
||||
gdal = "*"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1"]
|
||||
build-backend = "poetry.core.masonry.api"
|
Loading…
Add table
Reference in a new issue