nixpkgs/pkgs/applications/misc/mbutil/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

25 lines
630 B
Nix

{ lib, buildPythonApplication, fetchFromGitHub, nose }:
buildPythonApplication rec {
pname = "mbutil";
version = "0.3.0";
src = fetchFromGitHub {
owner = "mapbox";
repo = pname;
rev = "v${version}";
sha256 = "06d62r89h026asaa4ryzb23m86j0cmbvy54kf4zl5f35sgiha45z";
};
nativeCheckInputs = [ nose ];
checkPhase = "nosetests";
meta = with lib; {
description = "An importer and exporter for MBTiles";
mainProgram = "mb-util";
homepage = "https://github.com/mapbox/mbutil";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ sikmir ];
};
}