Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 104 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105{ lib, stdenv, affine, attrs, boto3, buildPythonPackage, click, click-plugins, cligj, certifi, cython, fetchFromGitHub, gdal, hypothesis, matplotlib, ipython, numpy, packaging, pytest-randomly, pytestCheckHook, pythonOlder, setuptools, shapely, snuggs}:
buildPythonPackage rec { pname = "rasterio"; version = "1.3.7"; format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "rasterio"; repo = "rasterio"; rev = "refs/tags/${version}"; hash = "sha256-6AtGRXGuAXMrePqS2lmNdOuPZi6LHuiWP2LJyxH3L3M="; };
nativeBuildInputs = [ cython gdal ];
propagatedBuildInputs = [ affine attrs click click-plugins cligj certifi numpy snuggs setuptools ];
passthru.optional-dependencies = { ipython = [ ipython ]; plot = [ matplotlib ]; s3 = [ boto3 ]; };
nativeCheckInputs = [ boto3 hypothesis packaging pytest-randomly pytestCheckHook shapely ];
doCheck = true;
preCheck = '' rm -r rasterio # prevent importing local rasterio '';
pytestFlagsArray = [ "-m 'not network'" ];
disabledTests = lib.optionals stdenv.isDarwin [ "test_reproject_error_propagation" ];
pythonImportsCheck = [ "rasterio" ];
meta = with lib; { description = "Python package to read and write geospatial raster data"; homepage = "https://rasterio.readthedocs.io/"; changelog = "https://github.com/rasterio/rasterio/blob/${version}/CHANGES.txt"; license = licenses.bsd3; maintainers = teams.geospatial.members; };}