nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (921B)


      1 { lib, stdenv, fetchFromGitHub, python3Packages, morecantile, pystac, color-operations }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "rio-tiler";
      5   version = "6.4.0";
      6   pyproject = true;
      7 
      8   src = fetchFromGitHub {
      9     owner = "cogeotiff";
     10     repo = "rio-tiler";
     11     rev = version;
     12     hash = "sha256-qnrs069t4pWhMk0NweIG61qKaMyBpqps7gJGxPXCK/0=";
     13   };
     14 
     15   nativeBuildInputs = with python3Packages; [ hatchling ];
     16 
     17   propagatedBuildInputs = with python3Packages; [
     18     boto3
     19     numexpr
     20     morecantile
     21     pystac
     22     rasterio
     23     httpx
     24     cachetools
     25     color-operations
     26   ];
     27 
     28   doCheck = false;
     29 
     30   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     31 
     32   pythonImportsCheck = [ "rio_tiler" ];
     33 
     34   meta = with lib; {
     35     description = "User friendly Rasterio plugin to read raster datasets";
     36     inherit (src.meta) homepage;
     37     license = licenses.bsd3;
     38     maintainers = [ maintainers.sikmir ];
     39   };
     40 }