nixpkgs/pkgs/development/python-modules/mercantile/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

31 lines
694 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub
, click
, pytestCheckHook
, hypothesis
}:
buildPythonPackage rec {
pname = "mercantile";
version = "1.2.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "mapbox";
repo = pname;
rev = version;
hash = "sha256-DiDXO2XnD3We6NhP81z7aIHzHrHDi/nkqy98OT9986w=";
};
propagatedBuildInputs = [ click ];
nativeCheckInputs = [ pytestCheckHook hypothesis ];
meta = with lib; {
description = "Spherical mercator tile and coordinate utilities";
mainProgram = "mercantile";
homepage = "https://github.com/mapbox/mercantile";
license = licenses.bsd3;
maintainers = with maintainers; [ sikmir ];
};
}