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 = {
|
2019-09-11 20:20:31 +00:00
|
|
|
description = "Importer and exporter for MBTiles";
|
2024-03-19 02:14:51 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|