nur-packages

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

default.nix (1199B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5   rio-cogeo,
      6   server-thread,
      7 }:
      8 
      9 python3Packages.buildPythonApplication rec {
     10   pname = "localtileserver";
     11   version = "0.10.5";
     12 
     13   src = fetchFromGitHub {
     14     owner = "banesullivan";
     15     repo = "localtileserver";
     16     rev = "v${version}";
     17     hash = "sha256-Vj7wUQU1xUsHPR545SpJcA8HgKV++bmNUxvqP/w3L2Q=";
     18   };
     19 
     20   dependencies = with python3Packages; [
     21     click
     22     flask
     23     flask-caching
     24     flask-cors
     25     flask-restx
     26     rio-tiler
     27     rio-cogeo
     28     requests
     29     server-thread
     30     setuptools
     31     scooby
     32     werkzeug
     33   ];
     34 
     35   nativeCheckInputs = with python3Packages; [
     36     pytestCheckHook
     37     matplotlib
     38   ];
     39 
     40   disabledTests = [
     41     "test_create_tile_client"
     42     "test_is_valid_palette_name"
     43     "test_home_page_with_file"
     44     "test_home_page"
     45     "test_cesium_split_view"
     46     "test_style"
     47     "test_cog_validate_endpoint"
     48     "test_get_pine_gulch"
     49     "test_get_oam2"
     50     "test_cog_validate"
     51     "test_tileclient_with_vsi"
     52   ];
     53 
     54   meta = {
     55     description = "Local Tile Server for Geospatial Rasters";
     56     homepage = "https://localtileserver.banesullivan.com/";
     57     license = lib.licenses.mit;
     58     maintainers = [ lib.maintainers.sikmir ];
     59   };
     60 }