nur-packages

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

default.nix (935B)


      1 {
      2   lib,
      3   stdenv,
      4   python3Packages,
      5   fetchFromGitHub,
      6 }:
      7 
      8 python3Packages.buildPythonPackage rec {
      9   pname = "contextily";
     10   version = "1.6.0";
     11   pyproject = true;
     12   disabled = python3Packages.pythonOlder "3.8";
     13 
     14   src = fetchFromGitHub {
     15     owner = "geopandas";
     16     repo = "contextily";
     17     rev = "v${version}";
     18     hash = "sha256-Pkw21EOjRiIhdZvCY6JJ2T2yjShF9Io4NAQZIIjeKpU=";
     19   };
     20 
     21   build-system = with python3Packages; [ setuptools-scm ];
     22 
     23   SETUPTOOLS_SCM_PRETEND_VERSION = version;
     24 
     25   dependencies = with python3Packages; [
     26     geopy
     27     matplotlib
     28     mercantile
     29     pillow
     30     rasterio
     31     requests
     32     joblib
     33     xyzservices
     34   ];
     35 
     36   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
     37 
     38   doCheck = false;
     39 
     40   meta = {
     41     description = "Context geo-tiles in Python";
     42     homepage = "https://github.com/geopandas/contextily";
     43     license = lib.licenses.bsd3;
     44     maintainers = [ lib.maintainers.sikmir ];
     45   };
     46 }