nur-packages

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

default.nix (864B)


      1 { lib, stdenv, fetchFromGitHub, python3Packages }:
      2 
      3 python3Packages.buildPythonPackage rec {
      4   pname = "morecantile";
      5   version = "3.1.2";
      6   disabled = python3Packages.pythonOlder "3.6";
      7 
      8   src = fetchFromGitHub {
      9     owner = "developmentseed";
     10     repo = pname;
     11     rev = version;
     12     hash = "sha256-QvqXpcjunRWzfdcoyt3pUulDd20Ga8Cs9NTeLnUf5c8=";
     13   };
     14 
     15   propagatedBuildInputs = with python3Packages; [ pydantic pyproj ];
     16 
     17   checkInputs = with python3Packages; [ mercantile pytestCheckHook ];
     18 
     19   installCheckPhase = "$out/bin/morecantile --version";
     20 
     21   meta = with lib; {
     22     description = "Construct and use map tile grids in different projection";
     23     homepage = "https://developmentseed.org/morecantile/";
     24     license = licenses.mit;
     25     maintainers = [ maintainers.sikmir ];
     26     broken = stdenv.isDarwin; # https://github.com/NixOS/nixpkgs/pull/161740
     27   };
     28 }