diff --git a/pkgs/default.nix b/pkgs/default.nix
index aed5dbe8b7c98501e718ef637da7069c2ec271f6..de423dbe7d511966450a52e59d90c9f61b1e5da2 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -101,9 +101,6 @@ earthpy = callPackage ./development/python-modules/earthpy { };
geotiler = callPackage ./development/python-modules/geotiler { };
gpxelevations = callPackage ./development/python-modules/gpxelevations { };
jsonseq = callPackage ./development/python-modules/jsonseq { };
(callPackage ./development/python-modules/large-image/sources.nix { }).source-gdal;
modbus_tk = callPackage ./development/python-modules/modbus_tk {
python3Packages = pkgs.python310Packages;
};
diff --git a/pkgs/development/python-modules/large-image/default.nix b/pkgs/development/python-modules/large-image/default.nix
deleted file mode 100644
index 06d8c7b5554e89f28f4697e45396280f04c73ea1..0000000000000000000000000000000000000000
--- a/pkgs/development/python-modules/large-image/default.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-{
-}:
-python3Packages.buildPythonPackage rec {
-}
diff --git a/pkgs/development/python-modules/large-image/sources.nix b/pkgs/development/python-modules/large-image/sources.nix
deleted file mode 100644
index a94786fe7360df85fd8071c2736a5b001e976a49..0000000000000000000000000000000000000000
--- a/pkgs/development/python-modules/large-image/sources.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{
-}:
-{
version
src
nativeBuildInputs
meta
;
gdal
pyproj
large-image
-}
diff --git a/pkgs/geospatial/localtileserver/default.nix b/pkgs/geospatial/localtileserver/default.nix
index 4d3aa68d7f435c4f07cf716a5f2bff6af32f8534..2887a70ddabd0609d301584d778b17b2af58886c 100644
--- a/pkgs/geospatial/localtileserver/default.nix
+++ b/pkgs/geospatial/localtileserver/default.nix
@@ -2,55 +2,41 @@ {
lib,
python3Packages,
fetchFromGitHub,
server-thread,
}:
python3Packages.buildPythonApplication rec {
pname = "localtileserver";
src = fetchFromGitHub {
owner = "banesullivan";
repo = "localtileserver";
};
--replace-fail "large-image[gdal]" "large-image-source-gdal"
dependencies = with python3Packages; [
click
flask
flask-caching
flask-cors
flask-restx
requests
server-thread
scooby
];
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
disabledTests = [
];
meta = {
@@ -58,6 +44,5 @@ description = "Local Tile Server for Geospatial Rasters";
homepage = "https://localtileserver.banesullivan.com/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.sikmir ];
};
}
diff --git a/pkgs/geospatial/rio-cogeo/default.nix b/pkgs/geospatial/rio-cogeo/default.nix
index be5452251cefee5a09d46edce517ba7397b80485..6d69556879111f4bc3f86fd93943f9f5d2b789e9 100644
--- a/pkgs/geospatial/rio-cogeo/default.nix
+++ b/pkgs/geospatial/rio-cogeo/default.nix
@@ -7,14 +7,14 @@ }:
python3Packages.buildPythonPackage rec {
pname = "rio-cogeo";
pyproject = true;
src = fetchFromGitHub {
owner = "cogeotiff";
repo = "rio-cogeo";
rev = version;
};
build-system = with python3Packages; [ flit ];
diff --git a/pkgs/geospatial/terracotta/default.nix b/pkgs/geospatial/terracotta/default.nix
index 79a3c4e9236ceb8bc262abdd581027718b0e6c58..d95b07f45a1b9b3f804257e0c96a2ea37e4e0279 100644
--- a/pkgs/geospatial/terracotta/default.nix
+++ b/pkgs/geospatial/terracotta/default.nix
@@ -6,13 +6,13 @@ }:
python3Packages.buildPythonApplication rec {
pname = "terracotta";
src = fetchFromGitHub {
owner = "DHI-GRAS";
repo = "terracotta";
rev = "refs/tags/v${version}";
};
postPatch = ''
diff --git a/pkgs/geospatial/tilecloud/default.nix b/pkgs/geospatial/tilecloud/default.nix
index 44d96fd9e8be180a81b34a7b5f7968536cec06c0..bb902e8ebfd7675c2c24129bd92af5303838b7af 100644
--- a/pkgs/geospatial/tilecloud/default.nix
+++ b/pkgs/geospatial/tilecloud/default.nix
@@ -7,17 +7,31 @@ }:
python3Packages.buildPythonApplication rec {
pname = "tilecloud";
src = fetchFromGitHub {
owner = "camptocamp";
repo = "tilecloud";
rev = version;
};
patches = [ ./set-tmpl-path.patch ];
--replace-fail "\"poetry-plugin-drop-python-upper-constraint\"" "" \
--replace-fail "\"poetry-plugin-tweak-dependencies-version\"," "" \
--replace-fail "\"poetry-plugin-tweak-dependencies-version>=1.1.0\"," "" \
--replace-fail "requests = \"2.32.2\"" "requests = \"*\""
dependencies = with python3Packages; [
azure-storage-blob
azure-identity
@@ -25,6 +39,7 @@ boto3
bottle
c2cwsgiutils
pillow
pyproj
requests
redis
@@ -35,7 +50,7 @@
postInstall = ''
site_packages=$out/lib/${python3Packages.python.libPrefix}/site-packages
substituteInPlace $out/bin/tc-viewer --subst-var site_packages
'';
diff --git a/pkgs/geospatial/tilecloud/set-tmpl-path.patch b/pkgs/geospatial/tilecloud/set-tmpl-path.patch
index 072132f7a8bbe83fac99a2543b1519c1ca861930..426f49ad70ee5f527cfdc3c91737efc43b114c41 100644
--- a/pkgs/geospatial/tilecloud/set-tmpl-path.patch
+++ b/pkgs/geospatial/tilecloud/set-tmpl-path.patch
@@ -1,17 +1,8 @@
-diff --git i/tc-viewer w/tc-viewer
-index bf226d2..2ff2735 100755
---- i/tc-viewer
-+++ w/tc-viewer
-@@ -7,6 +7,8 @@ import sys
-+bottle.TEMPLATE_PATH = "@site_packages@/views"
-+
-@@ -146,12 +148,12 @@ def openwebglobe():
+diff --git i/tilecloud/scripts/tc_viewer.py w/tilecloud/scripts/tc_viewer.py
+index 1c5e6056..8cabfd10 100755
+--- i/tilecloud/scripts/tc_viewer.py
++++ w/tilecloud/scripts/tc_viewer.py
+@@ -112,12 +112,12 @@ def openwebglobe():
@bottle.route("/favicon.ico")
def favicon():
diff --git a/pkgs/geospatial/tilekiln/default.nix b/pkgs/geospatial/tilekiln/default.nix
index 716c65f63c22a96f39fd0e23efa25ddd02dd58c3..e53561ca7fa0604d6853ea0abf4e9ffcbe829daa 100644
--- a/pkgs/geospatial/tilekiln/default.nix
+++ b/pkgs/geospatial/tilekiln/default.nix
@@ -3,35 +3,38 @@ lib,
stdenv,
fetchFromGitHub,
python3Packages,
}:
python3Packages.buildPythonApplication rec {
pname = "tilekiln";
src = fetchFromGitHub {
owner = "pnorman";
repo = "tilekiln";
};
sed -i '/setup_requires=/d' setup.py
sed -i 's/len(os.sched_getaffinity(0))/4/' tilekiln/scripts/__init__.py
dependencies = with python3Packages; [
click
fs
jinja2
psycopg
psycopg.optional-dependencies.pool
uvicorn
];
diff --git a/pkgs/geospatial/titiler/default.nix b/pkgs/geospatial/titiler/default.nix
index 92f78ccd7cc3038e03970ed994370549bd3c356c..65d39f8e11b5adce31096c7395f442c376d39404 100644
--- a/pkgs/geospatial/titiler/default.nix
+++ b/pkgs/geospatial/titiler/default.nix
@@ -10,13 +10,13 @@ cogeo-mosaic,
}:
let
pname = "titiler";
src = fetchFromGitHub {
owner = "developmentseed";
repo = "titiler";
rev = version;
};
meta = {
@@ -31,6 +31,10 @@ inherit version src meta;
pname = "${pname}.core";
sourceRoot = "${src.name}/src/titiler/core";
pyproject = true;
substituteInPlace pyproject.toml --replace "fastapi-slim>=0.111.0" "fastapi"
nativeBuildInputs = with python3Packages; [ pdm-pep517 ];
dependencies = with python3Packages; [
diff --git a/pkgs/gnss/pygpsclient/default.nix b/pkgs/gnss/pygpsclient/default.nix
index d363a3b9724a268801252fa5762ecb5a0a469d4c..6988f93bd15922848e101efb9168609f1976a5ce 100644
--- a/pkgs/gnss/pygpsclient/default.nix
+++ b/pkgs/gnss/pygpsclient/default.nix
@@ -7,14 +7,14 @@ }:
python3Packages.buildPythonApplication rec {
pname = "pygpsclient";
pyproject = true;
src = fetchFromGitHub {
owner = "semuconsulting";
repo = "PyGPSClient";
rev = "v${version}";
};
build-system = with python3Packages; [ setuptools ];
application/octet-stream
This content has been proxied by September (3851b).