159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
795 B
Nix
36 lines
795 B
Nix
{
|
|
lib,
|
|
buildPythonApplication,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "mbutil";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mapbox";
|
|
repo = "mbutil";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-vxAF49NluEI/cZMUv1dlQBpUh1jfZ6KUVkYAmFAWphk=";
|
|
};
|
|
|
|
patches = [ ./migrate_to_pytest.patch ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pytestFlagsArray = [ "test/test.py" ];
|
|
|
|
meta = {
|
|
description = "Importer and exporter for MBTiles";
|
|
mainProgram = "mb-util";
|
|
homepage = "https://github.com/mapbox/mbutil";
|
|
license = lib.licenses.bsd3;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
};
|
|
}
|