Loading pkgs/development/python-modules/rasterio/default.nix +21 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ , pytestCheckHook , pythonOlder , stdenv , testers , affine , attrs Loading @@ -26,6 +27,8 @@ , shapely , snuggs , wheel , rasterio # required to run version test }: buildPythonPackage rec { Loading Loading @@ -54,6 +57,12 @@ buildPythonPackage rec { }) ]; postPatch = '' # remove useless import statement requiring distutils to be present at the runtime substituteInPlace rasterio/rio/calc.py \ --replace-fail "from distutils.version import LooseVersion" "" ''; nativeBuildInputs = [ cython_3 gdal Loading @@ -71,7 +80,6 @@ buildPythonPackage rec { click-plugins cligj numpy setuptools snuggs ]; Loading @@ -96,6 +104,12 @@ buildPythonPackage rec { shapely ]; # rio has runtime dependency on setuptools setuptoolsPythonPath = [ setuptools ]; postInstall = '' wrapPythonProgramsIn "$out/bin" "$out $setuptoolsPythonPath" ''; doCheck = true; preCheck = '' Loading @@ -120,6 +134,12 @@ buildPythonPackage rec { "rasterio" ]; passthru.tests.version = testers.testVersion { package = rasterio; version = version; command = "${rasterio}/bin/rio --version"; }; meta = with lib; { description = "Python package to read and write geospatial raster data"; mainProgram = "rio"; Loading Loading
pkgs/development/python-modules/rasterio/default.nix +21 −1 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ , pytestCheckHook , pythonOlder , stdenv , testers , affine , attrs Loading @@ -26,6 +27,8 @@ , shapely , snuggs , wheel , rasterio # required to run version test }: buildPythonPackage rec { Loading Loading @@ -54,6 +57,12 @@ buildPythonPackage rec { }) ]; postPatch = '' # remove useless import statement requiring distutils to be present at the runtime substituteInPlace rasterio/rio/calc.py \ --replace-fail "from distutils.version import LooseVersion" "" ''; nativeBuildInputs = [ cython_3 gdal Loading @@ -71,7 +80,6 @@ buildPythonPackage rec { click-plugins cligj numpy setuptools snuggs ]; Loading @@ -96,6 +104,12 @@ buildPythonPackage rec { shapely ]; # rio has runtime dependency on setuptools setuptoolsPythonPath = [ setuptools ]; postInstall = '' wrapPythonProgramsIn "$out/bin" "$out $setuptoolsPythonPath" ''; doCheck = true; preCheck = '' Loading @@ -120,6 +134,12 @@ buildPythonPackage rec { "rasterio" ]; passthru.tests.version = testers.testVersion { package = rasterio; version = version; command = "${rasterio}/bin/rio --version"; }; meta = with lib; { description = "Python package to read and write geospatial raster data"; mainProgram = "rio"; Loading