nixpkgs/pkgs/applications/misc/mbutil/default.nix

37 lines
795 B
Nix
Raw Permalink Normal View History

2024-08-13 22:43:23 +00:00
{
lib,
buildPythonApplication,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
2019-09-11 20:20:31 +00:00
buildPythonApplication rec {
pname = "mbutil";
version = "0.3.0";
2024-08-13 22:43:23 +00:00
pyproject = true;
2019-09-11 20:20:31 +00:00
src = fetchFromGitHub {
owner = "mapbox";
2024-08-13 22:43:23 +00:00
repo = "mbutil";
rev = "refs/tags/v${version}";
hash = "sha256-vxAF49NluEI/cZMUv1dlQBpUh1jfZ6KUVkYAmFAWphk=";
2019-09-11 20:20:31 +00:00
};
2024-08-13 22:43:23 +00:00
patches = [ ./migrate_to_pytest.patch ];
2019-09-11 20:20:31 +00:00
2024-08-13 22:43:23 +00:00
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "test/test.py" ];
meta = {
description = "Importer and exporter for MBTiles";
mainProgram = "mb-util";
2019-09-11 20:20:31 +00:00
homepage = "https://github.com/mapbox/mbutil";
2024-08-13 22:43:23 +00:00
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ sikmir ];
2019-09-11 20:20:31 +00:00
};
}