Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #496 from imincik/weekly-update-2024.23
Browse files Browse the repository at this point in the history
pkgs: weekly update (weekly-update-2024.23)
  • Loading branch information
imincik authored Jun 7, 2024
2 parents b90f70e + f430724 commit 5b8b0e7
Show file tree
Hide file tree
Showing 17 changed files with 231 additions and 257 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 22 additions & 25 deletions pkgs/fiona/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, cython_3
, gdal
, oldest-supported-numpy
, setuptools
, wheel
, attrs
, certifi
, click
, click-plugins
, cligj
, munch
, shapely
, boto3
, pytestCheckHook
, pytz
{
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 {
Expand All @@ -41,9 +42,7 @@ buildPythonPackage rec {
wheel
];

buildInputs = [
gdal
];
buildInputs = [ gdal ];

propagatedBuildInputs = [
attrs
Expand Down Expand Up @@ -84,9 +83,7 @@ buildPythonPackage rec {
"test_append_memoryfile_drivers"
];

pythonImportsCheck = [
"fiona"
];
pythonImportsCheck = [ "fiona" ];

doInstallCheck = true;

Expand Down
28 changes: 14 additions & 14 deletions pkgs/fiona/nixpkgs/cython.patch
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git b/pkgs/fiona/default.nix a/pkgs/fiona/default.nix
index 35c9b57..e198752 100644
--- b/pkgs/fiona/default.nix
+++ a/pkgs/fiona/default.nix
@@ -2,7 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
-, cython
+, cython_3
, gdal
, oldest-supported-numpy
, setuptools
@@ -34,7 +34,7 @@ buildPythonPackage rec {
diff --git a/pkgs/fiona/default.nix b/pkgs/fiona/default.nix
index 753bcc3..156cb26 100644
--- a/pkgs/fiona/default.nix
+++ b/pkgs/fiona/default.nix
@@ -3,7 +3,7 @@
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
- cython,
+ cython_3,
gdal,
oldest-supported-numpy,
setuptools,
@@ -35,7 +35,7 @@ buildPythonPackage rec {
};

nativeBuildInputs = [
Expand Down
4 changes: 2 additions & 2 deletions pkgs/gdal/master-rev.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
rev = "0890073";
hash = "sha256-7MyC9uI/jEqJl051twsU2P6AT6uCrcU4/JW/AvYWO5k=";
rev = "0b1f77f";
hash = "sha256-jtYfdQHmMFDu8SSv5z4RBakNWE4ZLClx/bGjXMcxDlI=";
}
39 changes: 17 additions & 22 deletions pkgs/geopandas/default.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, setuptools
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,

, fiona
, packaging
, pandas
, pyproj
, rtree
, shapely
fiona,
packaging,
pandas,
pyproj,
rtree,
shapely,
}:

buildPythonPackage rec {
Expand All @@ -28,9 +29,7 @@ buildPythonPackage rec {
hash = "sha256-FBhPcae8bnNnsfr14I1p22VhoOf9USF9DAcrAqx+zso=";
};

build-system = [
setuptools
];
build-system = [ setuptools ];

propagatedBuildInputs = [
fiona
Expand All @@ -56,13 +55,9 @@ buildPythonPackage rec {
"test_read_file_url"
];

pytestFlagsArray = [
"geopandas"
];
pytestFlagsArray = [ "geopandas" ];

pythonImportsCheck = [
"geopandas"
];
pythonImportsCheck = [ "geopandas" ];

meta = with lib; {
description = "Python geospatial data analysis framework";
Expand Down
49 changes: 18 additions & 31 deletions pkgs/owslib/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,

, lxml
, pyproj
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
, pyyaml
, requests
lxml,
pyproj,
pytestCheckHook,
python-dateutil,
pythonOlder,
pytz,
pyyaml,
requests,
}:

buildPythonPackage rec {
Expand Down Expand Up @@ -41,32 +42,18 @@ buildPythonPackage rec {
requests
];

nativeCheckInputs = [
pytestCheckHook
];
nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [
"owslib"
];
pythonImportsCheck = [ "owslib" ];

preCheck = ''
# _pytest.pathlib.ImportPathMismatchError: ('owslib.swe.sensor.sml', '/build/source/build/...
export PY_IGNORE_IMPORTMISMATCH=1
'';

disabledTests = [
# Tests require network access
"test_ows_interfaces_wcs"
"test_wfs_110_remotemd"
"test_wfs_200_remotemd"
"test_wms_130_remotemd"
"test_wmts_example_informatievlaanderen"
"test_opensearch_creodias"
] ++ lib.optionals stdenv.isDarwin [
"test_ogcapi_processes_pygeoapi"
"test_ogcapi_records_pycsw"
"test_ogcapi_records_pygeoapi"
"test_wms_getfeatureinfo_130"
pytestFlagsArray = [
# disable tests which require network access
"-m 'not online'"
];

meta = with lib; {
Expand Down
4 changes: 2 additions & 2 deletions pkgs/postgis/nixpkgs/maintainers.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
diff --git a/pkgs/postgis/postgis.nix b/pkgs/postgis/postgis.nix
index 6f25390..1a50583 100644
index 417795a..dde0765 100644
--- a/pkgs/postgis/postgis.nix
+++ b/pkgs/postgis/postgis.nix
@@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
homepage = "https://postgis.net/";
changelog = "https://git.osgeo.org/gitea/postgis/postgis/raw/tag/${version}/NEWS";
license = licenses.gpl2;
license = licenses.gpl2Plus;
- maintainers = with maintainers; teams.geospatial.members ++ [ marcweber wolfgangwalther ];
+ maintainers = with maintainers; teams.geospatial.members ++ [ marcweber ];
inherit (postgresql.meta) platforms;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/postgis/postgis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ stdenv.mkDerivation rec {
description = "Geographic Objects for PostgreSQL";
homepage = "https://postgis.net/";
changelog = "https://git.osgeo.org/gitea/postgis/postgis/raw/tag/${version}/NEWS";
license = licenses.gpl2;
license = licenses.gpl2Plus;
maintainers = with maintainers; teams.geospatial.members ++ [ marcweber ];
inherit (postgresql.meta) platforms;
broken = versionOlder postgresql.version "12";
Expand Down
5 changes: 2 additions & 3 deletions pkgs/proj/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, buildPackages
Expand All @@ -17,13 +16,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "proj";
version = "9.4.0";
version = "9.4.1";

src = fetchFromGitHub {
owner = "OSGeo";
repo = "PROJ";
rev = finalAttrs.version;
hash = "sha256-m8u5+uWeXI2lxxsTcVJbvCiV30CQifw4reAY3GHHavA=";
hash = "sha256-sLlG9NNHST9d0G5hV1tOGpTSv4rbUxERW3kwGC+t1iU=";
};

patches = [
Expand Down
54 changes: 33 additions & 21 deletions pkgs/pyproj/default.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, proj
, pythonOlder
, substituteAll
, cython
, pytestCheckHook
, mock
, certifi
, numpy
, shapely
, pandas
, xarray
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytestCheckHook,
pythonOlder,
substituteAll,

certifi,
cython,
mock,
numpy,
pandas,
proj,
shapely,
xarray,
}:

buildPythonPackage rec {
Expand All @@ -35,21 +37,25 @@ buildPythonPackage rec {
proj = proj;
projdev = proj.dev;
})

# fix test failure caused by update of EPSG DB
(fetchpatch {
url = "https://github.com/pyproj4/pyproj/commit/3f7c7e5bcec33d9b2f37ceb03c484ea318dff3ce.patch";
hash = "sha256-0J8AlInuhFDAYIBJAJ00XbqIanJY/D8xPVwlOapmLDE=";
})
];

nativeBuildInputs = [ cython ];
buildInputs = [ proj ];

propagatedBuildInputs = [
certifi
];
propagatedBuildInputs = [ certifi ];

nativeCheckInputs = [
pytestCheckHook
mock
numpy
shapely
pandas
pytestCheckHook
shapely
xarray
];

Expand Down Expand Up @@ -110,6 +116,12 @@ buildPythonPackage rec {
homepage = "https://github.com/pyproj4/pyproj";
changelog = "https://github.com/pyproj4/pyproj/blob/${src.rev}/docs/history.rst";
license = licenses.mit;
maintainers = with maintainers; teams.geospatial.members ++ [ lsix dotlambda ];
maintainers =
with maintainers;
teams.geospatial.members
++ [
lsix
dotlambda
];
};
}
Loading

0 comments on commit 5b8b0e7

Please sign in to comment.