nur-packages

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

default.nix (938B)


      1 { lib, stdenv, fetchFromGitHub, python3Packages, testers, morecantile }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "morecantile";
      5   version = "5.3.0";
      6   pyproject = true;
      7   disabled = python3Packages.pythonOlder "3.8";
      8 
      9   src = fetchFromGitHub {
     10     owner = "developmentseed";
     11     repo = "morecantile";
     12     rev = version;
     13     hash = "sha256-F7xYQrOngoRsZjmS6ZHRGN0/GD53AYcMQzyY1LZ1O7I=";
     14   };
     15 
     16   nativeBuildInputs = with python3Packages; [ flit ];
     17 
     18   propagatedBuildInputs = with python3Packages; [ attrs pydantic pyproj ];
     19 
     20   nativeCheckInputs = with python3Packages; [ mercantile pytestCheckHook rasterio ];
     21 
     22   passthru.tests.version = testers.testVersion {
     23     package = morecantile;
     24   };
     25 
     26   meta = with lib; {
     27     description = "Construct and use map tile grids in different projection";
     28     homepage = "https://developmentseed.org/morecantile/";
     29     license = licenses.mit;
     30     maintainers = [ maintainers.sikmir ];
     31   };
     32 }