Skip to content

Commit

Permalink
Merge pull request #522 from imincik/grass-addons-geonix-attrset
Browse files Browse the repository at this point in the history
grass-plugins: pass geonix python packages as attrset
  • Loading branch information
imincik authored Aug 29, 2024
2 parents d396120 + c39c9d5 commit 154ef84
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
plugin = value;

inherit grass;
python3-gdal = python-packages.python3.gdal;
geopkgs-python3 = python-packages.python3;
};
}
)
Expand Down
10 changes: 6 additions & 4 deletions pkgs/grass/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
, pkg-config
, postgresql
, python3
, python3-gdal

, geopkgs-python3
}:

let
Expand Down Expand Up @@ -54,9 +55,10 @@ stdenv.mkDerivation {
# python
matplotlib
numpy
python3-gdal
six
];
] ++ (with geopkgs-python3; [
gdal
]);

# extra plugin dependencies (both Python and non-python)
propagatedBuildInputs = with python3.pkgs; [ ]
Expand All @@ -66,7 +68,7 @@ stdenv.mkDerivation {
++ lib.optionals (name == "r-edm-eval") [ pandas ]
++ lib.optionals (name == "i-eodag") [ pytz ]
++ lib.optionals (name == "wx-metadata") [ wxpython ]
++ lib.optionals (name == "r-in-vect") [ python3-gdal ]
++ lib.optionals (name == "r-in-vect") [ (geopkgs-python3.gdal) ]
++ lib.optionals (name == "i-landsat") [ pyyaml]
# ++ lib.optionals (name == "i-sentinel") [ pystac ]

Expand Down

0 comments on commit 154ef84

Please sign in to comment.